home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Icon 8.1 / msm-1 / rtt.sit / rttgram.y < prev    next >
MacBinary  |  1992-09-19  |  33.9 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: rttgram.y

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Fri Sep 18 22:12:28 1992, modified Fri Sep 18 22:12:28 1992, creator 'MPS ', type ASCII, 33972 bytes "rttgram.y" , at 0x8534 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 72 74 74 67 72 61 | 6d 2e 79 00 00 00 00 00 |..rttgra|m.y.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 84 b4 00 | 00 01 ac a6 e0 3d 0c a6 |........|.....=..|
|00000060| e0 3d 0c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.=......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 27 35 00 00 |........|....'5..|
|00000080| 2f 2a 20 0d 20 2a 20 47 | 72 61 6d 6d 61 72 20 66 |/* . * G|rammar f|
|00000090| 6f 72 20 52 54 4c 2e 20 | 54 68 65 20 43 20 70 6f |or RTL. |The C po|
|000000a0| 72 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 67 72 61 |rtion of| the gra|
|000000b0| 6d 6d 61 72 20 69 73 20 | 62 61 73 65 64 20 6f 6e |mmar is |based on|
|000000c0| 0d 20 2a 20 20 74 68 65 | 20 41 4e 53 49 20 44 72 |. * the| ANSI Dr|
|000000d0| 61 66 74 20 53 74 61 6e | 64 61 72 64 20 2d 20 33 |aft Stan|dard - 3|
|000000e0| 72 64 20 72 65 76 69 65 | 77 2e 0d 20 2a 2f 0d 0d |rd revie|w.. */..|
|000000f0| 25 7b 0d 23 69 6e 63 6c | 75 64 65 20 22 72 74 74 |%{.#incl|ude "rtt|
|00000100| 31 2e 68 22 0d 23 64 65 | 66 69 6e 65 20 59 59 4d |1.h".#de|fine YYM|
|00000110| 41 58 44 45 50 54 48 20 | 32 35 30 0d 25 7d 0d 0d |AXDEPTH |250.%}..|
|00000120| 25 75 6e 69 6f 6e 20 7b | 0d 20 20 20 73 74 72 75 |%union {|. stru|
|00000130| 63 74 20 74 6f 6b 65 6e | 20 2a 74 3b 0d 20 20 20 |ct token| *t;. |
|00000140| 73 74 72 75 63 74 20 6e | 6f 64 65 20 2a 6e 3b 0d |struct n|ode *n;.|
|00000150| 20 20 20 6c 6f 6e 67 20 | 69 3b 0d 20 20 20 7d 0d | long |i;. }.|
|00000160| 0d 25 74 6f 6b 65 6e 20 | 3c 74 3e 20 49 64 65 6e |.%token |<t> Iden|
|00000170| 74 69 66 69 65 72 20 53 | 74 72 4c 69 74 20 4c 53 |tifier S|trLit LS|
|00000180| 74 72 4c 69 74 20 46 6c | 74 43 6f 6e 73 74 20 44 |trLit Fl|tConst D|
|00000190| 62 6c 43 6f 6e 73 74 20 | 4c 44 62 6c 43 6f 6e 73 |blConst |LDblCons|
|000001a0| 74 0d 25 74 6f 6b 65 6e | 20 3c 74 3e 20 43 68 61 |t.%token| <t> Cha|
|000001b0| 72 43 6f 6e 73 74 20 4c | 43 68 61 72 43 6f 6e 73 |rConst L|CharCons|
|000001c0| 74 20 49 6e 74 43 6f 6e | 73 74 20 55 49 6e 74 43 |t IntCon|st UIntC|
|000001d0| 6f 6e 73 74 20 4c 49 6e | 74 43 6f 6e 73 74 20 55 |onst LIn|tConst U|
|000001e0| 4c 49 6e 74 43 6f 6e 73 | 74 20 0d 25 74 6f 6b 65 |LIntCons|t .%toke|
|000001f0| 6e 20 3c 74 3e 20 41 72 | 72 6f 77 20 49 6e 63 72 |n <t> Ar|row Incr|
|00000200| 20 44 65 63 72 20 4c 53 | 68 66 74 20 52 53 68 66 | Decr LS|hft RShf|
|00000210| 74 20 4c 65 71 20 47 65 | 71 20 45 71 75 61 6c 20 |t Leq Ge|q Equal |
|00000220| 4e 65 71 0d 25 74 6f 6b | 65 6e 20 3c 74 3e 20 41 |Neq.%tok|en <t> A|
|00000230| 6e 64 20 4f 72 20 4d 75 | 6c 74 41 73 67 6e 20 44 |nd Or Mu|ltAsgn D|
|00000240| 69 76 41 73 67 6e 20 4d | 6f 64 41 73 67 6e 20 50 |ivAsgn M|odAsgn P|
|00000250| 6c 75 73 41 73 67 6e 0d | 25 74 6f 6b 65 6e 20 3c |lusAsgn.|%token <|
|00000260| 74 3e 20 4d 69 6e 75 73 | 41 73 67 6e 20 4c 53 68 |t> Minus|Asgn LSh|
|00000270| 66 74 41 73 67 6e 20 52 | 53 68 66 74 41 73 67 6e |ftAsgn R|ShftAsgn|
|00000280| 20 41 6e 64 41 73 67 6e | 0d 25 74 6f 6b 65 6e 20 | AndAsgn|.%token |
|00000290| 3c 74 3e 20 58 6f 72 41 | 73 67 6e 20 4f 72 41 73 |<t> XorA|sgn OrAs|
|000002a0| 67 6e 20 53 69 7a 65 6f | 66 20 49 6e 74 65 72 73 |gn Sizeo|f Inters|
|000002b0| 65 63 74 20 4f 70 53 79 | 6d 0d 0d 25 74 6f 6b 65 |ect OpSy|m..%toke|
|000002c0| 6e 20 3c 74 3e 20 54 79 | 70 65 64 65 66 20 45 78 |n <t> Ty|pedef Ex|
|000002d0| 74 65 72 6e 20 53 74 61 | 74 69 63 20 41 75 74 6f |tern Sta|tic Auto|
|000002e0| 20 52 65 67 69 73 74 65 | 72 20 54 65 6e 64 65 64 | Registe|r Tended|
|000002f0| 0d 25 74 6f 6b 65 6e 20 | 3c 74 3e 20 43 68 61 72 |.%token |<t> Char|
|00000300| 20 53 68 6f 72 74 20 49 | 6e 74 20 4c 6f 6e 67 20 | Short I|nt Long |
|00000310| 53 69 67 6e 65 64 20 55 | 6e 73 69 67 6e 65 64 20 |Signed U|nsigned |
|00000320| 46 6c 6f 61 74 20 44 6f | 75 62 6c 20 43 6f 6e 73 |Float Do|ubl Cons|
|00000330| 74 20 56 6f 6c 61 74 69 | 6c 65 0d 25 74 6f 6b 65 |t Volati|le.%toke|
|00000340| 6e 20 3c 74 3e 20 56 6f | 69 64 20 54 79 70 65 44 |n <t> Vo|id TypeD|
|00000350| 65 66 4e 61 6d 65 20 53 | 74 72 75 63 74 20 55 6e |efName S|truct Un|
|00000360| 69 6f 6e 20 45 6e 75 6d | 20 45 6c 6c 69 70 73 69 |ion Enum| Ellipsi|
|00000370| 73 0d 0d 25 74 6f 6b 65 | 6e 20 3c 74 3e 20 43 61 |s..%toke|n <t> Ca|
|00000380| 73 65 20 44 65 66 61 75 | 6c 74 20 49 66 20 45 6c |se Defau|lt If El|
|00000390| 73 65 20 53 77 69 74 63 | 68 20 57 68 69 6c 65 20 |se Switc|h While |
|000003a0| 44 6f 20 46 6f 72 20 47 | 6f 74 6f 20 43 6f 6e 74 |Do For G|oto Cont|
|000003b0| 69 6e 75 65 20 42 72 65 | 61 6b 20 52 65 74 75 72 |inue Bre|ak Retur|
|000003c0| 6e 0d 0d 25 74 6f 6b 65 | 6e 20 3c 74 3e 20 27 25 |n..%toke|n <t> '%|
|000003d0| 27 20 27 26 27 20 27 28 | 27 20 27 29 27 20 27 2a |' '&' '(|' ')' '*|
|000003e0| 27 20 27 2b 27 20 27 2c | 27 20 27 2d 27 20 27 2e |' '+' ',|' '-' '.|
|000003f0| 27 20 27 2f 27 20 27 7b | 27 20 27 7c 27 20 27 7d |' '/' '{|' '|' '}|
|00000400| 27 20 27 7e 27 20 27 5b | 27 20 27 5d 27 20 0d 25 |' '~' '[|' ']' .%|
|00000410| 74 6f 6b 65 6e 20 3c 74 | 3e 20 27 5e 27 20 27 3a |token <t|> '^' ':|
|00000420| 27 20 27 3b 27 20 27 3c | 27 20 27 3d 27 20 27 3e |' ';' '<|' '=' '>|
|00000430| 27 20 27 3f 27 20 27 21 | 27 20 27 40 27 20 27 5c |' '?' '!|' '@' '\|
|00000440| 5c 27 0d 0d 25 74 6f 6b | 65 6e 20 3c 74 3e 20 52 |\'..%tok|en <t> R|
|00000450| 75 6e 65 72 72 20 49 73 | 20 43 6e 76 20 44 65 66 |unerr Is| Cnv Def|
|00000460| 20 45 78 61 63 74 20 45 | 6d 70 74 79 5f 74 79 70 | Exact E|mpty_typ|
|00000470| 65 20 49 63 6f 6e 54 79 | 70 65 20 43 6f 6d 70 6f |e IconTy|pe Compo|
|00000480| 6e 65 6e 74 20 56 61 72 | 69 61 62 6c 65 0d 25 74 |nent Var|iable.%t|
|00000490| 6f 6b 65 6e 20 3c 74 3e | 20 41 6e 79 5f 76 61 6c |oken <t>| Any_val|
|000004a0| 75 65 20 4e 61 6d 65 64 | 5f 76 61 72 20 53 74 72 |ue Named|_var Str|
|000004b0| 75 63 74 5f 76 61 72 20 | 43 5f 49 6e 74 65 67 65 |uct_var |C_Intege|
|000004c0| 72 20 41 72 69 74 68 5f | 63 61 73 65 0d 25 74 6f |r Arith_|case.%to|
|000004d0| 6b 65 6e 20 3c 74 3e 20 | 43 5f 44 6f 75 62 6c 65 |ken <t> |C_Double|
|000004e0| 20 43 5f 53 74 72 69 6e | 67 20 54 6d 70 5f 73 74 | C_Strin|g Tmp_st|
|000004f0| 72 69 6e 67 20 54 6d 70 | 5f 63 73 65 74 20 42 6f |ring Tmp|_cset Bo|
|00000500| 64 79 20 45 6e 64 20 46 | 75 6e 63 74 69 6f 6e 20 |dy End F|unction |
|00000510| 4b 65 79 77 6f 72 64 0d | 25 74 6f 6b 65 6e 20 3c |Keyword.|%token <|
|00000520| 74 3e 20 4f 70 65 72 61 | 74 6f 72 20 55 6e 64 65 |t> Opera|tor Unde|
|00000530| 72 65 66 20 44 65 63 6c | 61 72 65 20 53 75 73 70 |ref Decl|are Susp|
|00000540| 65 6e 64 20 46 61 69 6c | 20 49 6e 6c 69 6e 65 20 |end Fail| Inline |
|00000550| 41 62 73 74 72 61 63 74 | 20 53 74 6f 72 65 0d 25 |Abstract| Store.%|
|00000560| 74 6f 6b 65 6e 20 3c 74 | 3e 20 54 79 70 65 20 4e |token <t|> Type N|
|00000570| 65 77 20 41 6c 6c 5f 66 | 69 65 6c 64 73 20 54 68 |ew All_f|ields Th|
|00000580| 65 6e 20 54 79 70 65 5f | 63 61 73 65 20 4f 66 20 |en Type_|case Of |
|00000590| 4c 65 6e 5f 63 61 73 65 | 20 43 6f 6e 73 74 61 6e |Len_case| Constan|
|000005a0| 74 20 45 72 72 6f 72 66 | 61 69 6c 0d 0d 25 74 79 |t Errorf|ail..%ty|
|000005b0| 70 65 20 3c 74 3e 20 75 | 6e 61 72 79 5f 6f 70 20 |pe <t> u|nary_op |
|000005c0| 61 73 73 69 67 6e 5f 6f | 70 20 73 74 72 75 63 74 |assign_o|p struct|
|000005d0| 5f 6f 72 5f 75 6e 69 6f | 6e 20 74 79 70 65 64 65 |_or_unio|n typede|
|000005e0| 66 6e 61 6d 65 0d 25 74 | 79 70 65 20 3c 74 3e 20 |fname.%t|ype <t> |
|000005f0| 69 64 65 6e 74 69 66 69 | 65 72 20 6f 70 5f 6e 61 |identifi|er op_na|
|00000600| 6d 65 20 6b 65 79 5f 63 | 6f 6e 73 74 20 75 6e 69 |me key_c|onst uni|
|00000610| 6f 6e 20 61 74 74 72 62 | 5f 6e 61 6d 65 0d 0d 25 |on attrb|_name..%|
|00000620| 74 79 70 65 20 3c 6e 3e | 20 61 6e 79 5f 69 64 65 |type <n>| any_ide|
|00000630| 6e 74 20 73 74 6f 72 61 | 67 65 5f 63 6c 61 73 73 |nt stora|ge_class|
|00000640| 5f 73 70 65 63 20 74 79 | 70 65 5f 71 75 61 6c 20 |_spec ty|pe_qual |
|00000650| 0d 25 74 79 70 65 20 3c | 6e 3e 20 70 72 69 6d 61 |.%type <|n> prima|
|00000660| 72 79 5f 65 78 70 72 20 | 70 6f 73 74 66 69 78 5f |ry_expr |postfix_|
|00000670| 65 78 70 72 20 61 72 67 | 5f 65 78 70 72 5f 6c 73 |expr arg|_expr_ls|
|00000680| 74 20 75 6e 61 72 79 5f | 65 78 70 72 20 63 61 73 |t unary_|expr cas|
|00000690| 74 5f 65 78 70 72 0d 25 | 74 79 70 65 20 3c 6e 3e |t_expr.%|type <n>|
|000006a0| 20 6d 75 6c 74 69 70 6c | 69 63 61 74 69 76 65 5f | multipl|icative_|
|000006b0| 65 78 70 72 20 61 64 64 | 69 74 69 76 65 5f 65 78 |expr add|itive_ex|
|000006c0| 70 72 20 73 68 69 66 74 | 5f 65 78 70 72 20 72 65 |pr shift|_expr re|
|000006d0| 6c 61 74 69 6f 6e 61 6c | 5f 65 78 70 72 0d 25 74 |lational|_expr.%t|
|000006e0| 79 70 65 20 3c 6e 3e 20 | 65 71 75 61 6c 69 74 79 |ype <n> |equality|
|000006f0| 5f 65 78 70 72 20 61 6e | 64 5f 65 78 70 72 20 65 |_expr an|d_expr e|
|00000700| 78 63 6c 75 73 69 76 65 | 5f 6f 72 5f 65 78 70 72 |xclusive|_or_expr|
|00000710| 20 69 6e 63 6c 75 73 69 | 76 65 5f 6f 72 5f 65 78 | inclusi|ve_or_ex|
|00000720| 70 72 0d 25 74 79 70 65 | 20 3c 6e 3e 20 6c 6f 67 |pr.%type| <n> log|
|00000730| 69 63 61 6c 5f 61 6e 64 | 5f 65 78 70 72 20 6c 6f |ical_and|_expr lo|
|00000740| 67 69 63 61 6c 5f 6f 72 | 5f 65 78 70 72 20 63 6f |gical_or|_expr co|
|00000750| 6e 64 69 74 69 6f 6e 61 | 6c 5f 65 78 70 72 20 61 |nditiona|l_expr a|
|00000760| 73 73 69 67 6e 5f 65 78 | 70 72 0d 25 74 79 70 65 |ssign_ex|pr.%type|
|00000770| 20 3c 6e 3e 20 65 78 70 | 72 20 6f 70 74 5f 65 78 | <n> exp|r opt_ex|
|00000780| 70 72 20 63 6f 6e 73 74 | 61 6e 74 5f 65 78 70 72 |pr const|ant_expr|
|00000790| 20 6f 70 74 5f 63 6f 6e | 73 74 61 6e 74 5f 65 78 | opt_con|stant_ex|
|000007a0| 70 72 20 64 63 6c 74 69 | 6f 6e 0d 25 74 79 70 65 |pr dclti|on.%type|
|000007b0| 20 3c 6e 3e 20 74 79 70 | 5f 64 63 6c 74 69 6f 6e | <n> typ|_dcltion|
|000007c0| 5f 73 70 65 63 73 20 64 | 63 6c 74 69 6f 6e 5f 73 |_specs d|cltion_s|
|000007d0| 70 65 63 73 20 74 79 70 | 65 5f 69 6e 64 20 74 79 |pecs typ|e_ind ty|
|000007e0| 70 65 5f 73 74 6f 72 63 | 6c 5f 74 71 75 61 6c 5f |pe_storc|l_tqual_|
|000007f0| 6c 73 74 0d 25 74 79 70 | 65 20 3c 6e 3e 20 73 74 |lst.%typ|e <n> st|
|00000800| 6f 72 63 6c 5f 74 71 75 | 61 6c 5f 6c 73 74 20 69 |orcl_tqu|al_lst i|
|00000810| 6e 69 74 5f 64 63 6c 74 | 6f 72 5f 6c 73 74 20 6e |nit_dclt|or_lst n|
|00000820| 6f 5f 74 64 6e 5f 69 6e | 69 74 5f 64 63 6c 74 6f |o_tdn_in|it_dclto|
|00000830| 72 5f 6c 73 74 20 69 6e | 69 74 5f 64 63 6c 74 6f |r_lst in|it_dclto|
|00000840| 72 0d 25 74 79 70 65 20 | 3c 6e 3e 20 6e 6f 5f 74 |r.%type |<n> no_t|
|00000850| 64 6e 5f 69 6e 69 74 5f | 64 63 6c 74 6f 72 20 74 |dn_init_|dcltor t|
|00000860| 79 70 65 5f 73 70 65 63 | 20 73 74 6e 64 5f 74 79 |ype_spec| stnd_ty|
|00000870| 70 65 20 73 74 72 75 63 | 74 5f 6f 72 5f 75 6e 69 |pe struc|t_or_uni|
|00000880| 6f 6e 5f 73 70 65 63 0d | 25 74 79 70 65 20 3c 6e |on_spec.|%type <n|
|00000890| 3e 20 73 74 72 75 63 74 | 5f 64 63 6c 74 69 6f 6e |> struct|_dcltion|
|000008a0| 5f 6c 73 74 20 73 74 72 | 75 63 74 5f 64 63 6c 74 |_lst str|uct_dclt|
|000008b0| 69 6f 6e 20 73 74 72 75 | 63 74 5f 64 63 6c 74 69 |ion stru|ct_dclti|
|000008c0| 6f 6e 5f 73 70 65 63 73 | 20 73 74 72 75 63 74 5f |on_specs| struct_|
|000008d0| 74 79 70 65 5f 69 6e 64 | 0d 25 74 79 70 65 20 3c |type_ind|.%type <|
|000008e0| 6e 3e 20 73 74 72 75 63 | 74 5f 74 79 70 65 5f 6c |n> struc|t_type_l|
|000008f0| 73 74 20 73 74 72 75 63 | 74 5f 64 63 6c 74 6f 72 |st struc|t_dcltor|
|00000900| 5f 6c 73 74 20 73 74 72 | 75 63 74 5f 64 63 6c 74 |_lst str|uct_dclt|
|00000910| 6f 72 0d 25 74 79 70 65 | 20 3c 6e 3e 20 73 74 72 |or.%type| <n> str|
|00000920| 75 63 74 5f 6e 6f 5f 74 | 64 6e 5f 64 63 6c 74 6f |uct_no_t|dn_dclto|
|00000930| 72 5f 6c 73 74 20 73 74 | 72 75 63 74 5f 6e 6f 5f |r_lst st|ruct_no_|
|00000940| 74 64 6e 5f 64 63 6c 74 | 6f 72 20 65 6e 75 6d 5f |tdn_dclt|or enum_|
|00000950| 73 70 65 63 20 65 6e 75 | 6d 65 72 61 74 6f 72 5f |spec enu|merator_|
|00000960| 6c 73 74 0d 25 74 79 70 | 65 20 3c 6e 3e 20 65 6e |lst.%typ|e <n> en|
|00000970| 75 6d 65 72 61 74 6f 72 | 20 64 63 6c 74 6f 72 20 |umerator| dcltor |
|00000980| 6e 6f 5f 74 64 6e 5f 64 | 63 6c 74 6f 72 20 64 69 |no_tdn_d|cltor di|
|00000990| 72 65 63 74 5f 64 63 6c | 74 6f 72 20 6e 6f 5f 74 |rect_dcl|tor no_t|
|000009a0| 64 6e 5f 64 69 72 65 63 | 74 5f 64 63 6c 74 6f 72 |dn_direc|t_dcltor|
|000009b0| 0d 25 74 79 70 65 20 3c | 6e 3e 20 70 6f 69 6e 74 |.%type <|n> point|
|000009c0| 65 72 20 6f 70 74 5f 70 | 6f 69 6e 74 65 72 20 74 |er opt_p|ointer t|
|000009d0| 71 75 61 6c 5f 6c 73 74 | 20 70 61 72 61 6d 5f 74 |qual_lst| param_t|
|000009e0| 79 70 65 5f 6c 73 74 20 | 6f 70 74 5f 70 61 72 61 |ype_lst |opt_para|
|000009f0| 6d 5f 74 79 70 65 5f 6c | 73 74 0d 25 74 79 70 65 |m_type_l|st.%type|
|00000a00| 20 3c 6e 3e 20 70 61 72 | 61 6d 5f 6c 73 74 20 70 | <n> par|am_lst p|
|00000a10| 61 72 61 6d 5f 64 63 6c | 74 69 6f 6e 20 69 64 65 |aram_dcl|tion ide|
|00000a20| 6e 74 5f 6c 73 74 20 74 | 79 70 65 5f 74 71 75 61 |nt_lst t|ype_tqua|
|00000a30| 6c 5f 6c 73 74 20 74 79 | 70 65 5f 6e 61 6d 65 0d |l_lst ty|pe_name.|
|00000a40| 25 74 79 70 65 20 3c 6e | 3e 20 61 62 73 74 72 61 |%type <n|> abstra|
|00000a50| 63 74 5f 64 63 6c 74 6f | 72 20 64 69 72 65 63 74 |ct_dclto|r direct|
|00000a60| 5f 61 62 73 74 72 61 63 | 74 5f 64 63 6c 74 6f 72 |_abstrac|t_dcltor|
|00000a70| 20 69 6e 69 74 69 61 6c | 69 7a 65 72 20 69 6e 69 | initial|izer ini|
|00000a80| 74 69 61 6c 69 7a 65 72 | 5f 6c 73 74 0d 25 74 79 |tializer|_lst.%ty|
|00000a90| 70 65 20 3c 6e 3e 20 73 | 74 6d 74 20 6c 61 62 65 |pe <n> s|tmt labe|
|00000aa0| 6c 65 64 5f 73 74 6d 74 | 20 63 6f 6d 70 6f 75 6e |led_stmt| compoun|
|00000ab0| 64 5f 73 74 6d 74 20 64 | 63 6c 74 69 6f 6e 5f 6c |d_stmt d|cltion_l|
|00000ac0| 73 74 20 6f 70 74 5f 64 | 63 6c 74 69 6f 6e 5f 6c |st opt_d|cltion_l|
|00000ad0| 73 74 20 73 74 6d 74 5f | 6c 73 74 0d 25 74 79 70 |st stmt_|lst.%typ|
|00000ae0| 65 20 3c 6e 3e 20 65 78 | 70 72 5f 73 74 6d 74 20 |e <n> ex|pr_stmt |
|00000af0| 73 65 6c 65 63 74 69 6f | 6e 5f 73 74 6d 74 20 69 |selectio|n_stmt i|
|00000b00| 74 65 72 61 74 69 6f 6e | 5f 73 74 6d 74 20 6a 75 |teration|_stmt ju|
|00000b10| 6d 70 5f 73 74 6d 74 20 | 70 61 72 6d 5f 64 63 6c |mp_stmt |parm_dcl|
|00000b20| 73 5f 6f 72 5f 69 64 73 | 0d 25 74 79 70 65 20 3c |s_or_ids|.%type <|
|00000b30| 6e 3e 20 66 75 6e 63 5f | 68 65 61 64 20 6f 70 74 |n> func_|head opt|
|00000b40| 5f 73 74 6d 74 5f 6c 73 | 74 20 6c 6f 63 61 6c 5f |_stmt_ls|t local_|
|00000b50| 64 63 6c 73 20 6c 6f 63 | 61 6c 5f 64 63 6c 0d 25 |dcls loc|al_dcl.%|
|00000b60| 74 79 70 65 20 3c 6e 3e | 20 64 65 73 74 5f 74 79 |type <n>| dest_ty|
|00000b70| 70 65 20 69 5f 74 79 70 | 65 5f 6e 61 6d 65 20 6f |pe i_typ|e_name o|
|00000b80| 70 74 5f 61 63 74 69 6f | 6e 73 20 61 63 74 69 6f |pt_actio|ns actio|
|00000b90| 6e 73 20 61 63 74 69 6f | 6e 20 72 65 74 5f 76 61 |ns actio|n ret_va|
|00000ba0| 6c 20 64 65 74 61 69 6c | 5f 63 6f 64 65 0d 25 74 |l detail|_code.%t|
|00000bb0| 79 70 65 20 3c 6e 3e 20 | 72 75 6e 65 72 72 20 76 |ype <n> |runerr v|
|00000bc0| 61 72 69 61 62 6c 65 20 | 63 68 65 63 6b 69 6e 67 |ariable |checking|
|00000bd0| 5f 63 6f 6e 76 65 72 73 | 69 6f 6e 73 20 6c 61 62 |_convers|ions lab|
|00000be0| 65 6c 0d 25 74 79 70 65 | 20 3c 6e 3e 20 74 79 70 |el.%type| <n> typ|
|00000bf0| 65 5f 63 68 65 63 6b 20 | 74 79 70 65 5f 73 65 6c |e_check |type_sel|
|00000c00| 65 63 74 5f 6c 73 74 20 | 6f 70 74 5f 64 65 66 61 |ect_lst |opt_defa|
|00000c10| 75 6c 74 20 74 79 70 65 | 5f 73 65 6c 65 63 74 20 |ult type|_select |
|00000c20| 73 65 6c 65 63 74 6f 72 | 5f 6c 73 74 0d 25 74 79 |selector|_lst.%ty|
|00000c30| 70 65 20 3c 6e 3e 20 63 | 5f 6f 70 74 5f 64 65 66 |pe <n> c|_opt_def|
|00000c40| 61 75 6c 74 20 63 5f 74 | 79 70 65 5f 73 65 6c 65 |ault c_t|ype_sele|
|00000c50| 63 74 20 63 5f 74 79 70 | 65 5f 73 65 6c 65 63 74 |ct c_typ|e_select|
|00000c60| 5f 6c 73 74 20 6e 6f 6e | 5f 6c 62 6c 5f 73 74 6d |_lst non|_lbl_stm|
|00000c70| 74 0d 25 74 79 70 65 20 | 3c 6e 3e 20 73 69 6d 70 |t.%type |<n> simp|
|00000c80| 6c 65 5f 63 68 65 63 6b | 5f 63 6f 6e 6a 20 73 69 |le_check|_conj si|
|00000c90| 6d 70 6c 65 5f 63 68 65 | 63 6b 20 6c 65 6e 5f 73 |mple_che|ck len_s|
|00000ca0| 65 6c 65 63 74 5f 6c 73 | 74 20 6c 65 6e 5f 73 65 |elect_ls|t len_se|
|00000cb0| 6c 65 63 74 0d 25 74 79 | 70 65 20 3c 6e 3e 20 74 |lect.%ty|pe <n> t|
|00000cc0| 79 70 65 5f 63 6f 6d 70 | 75 74 61 74 69 6f 6e 73 |ype_comp|utations|
|00000cd0| 20 73 69 64 65 5f 65 66 | 66 65 63 74 5f 6c 73 74 | side_ef|fect_lst|
|00000ce0| 20 73 69 64 65 5f 65 66 | 66 65 63 74 0d 25 74 79 | side_ef|fect.%ty|
|00000cf0| 70 65 20 3c 6e 3e 20 74 | 79 70 65 20 62 61 73 69 |pe <n> t|ype basi|
|00000d00| 63 5f 74 79 70 65 20 74 | 79 70 65 5f 6c 73 74 0d |c_type t|ype_lst.|
|00000d10| 0d 25 74 79 70 65 20 3c | 69 3e 20 6f 70 74 5f 70 |.%type <|i> opt_p|
|00000d20| 6c 75 73 20 6c 65 6e 67 | 74 68 0d 0d 2f 2a 20 47 |lus leng|th../* G|
|00000d30| 65 74 20 72 69 64 20 6f | 66 20 73 68 69 66 74 2f |et rid o|f shift/|
|00000d40| 72 65 64 75 63 65 20 63 | 6f 6e 66 6c 69 63 74 20 |reduce c|onflict |
|00000d50| 6f 6e 20 45 6c 73 65 2e | 20 55 73 65 20 70 72 65 |on Else.| Use pre|
|00000d60| 63 65 64 65 6e 63 65 20 | 74 6f 20 66 6f 72 63 65 |cedence |to force|
|00000d70| 20 73 68 69 66 74 20 6f | 66 0d 20 20 20 45 6c 73 | shift o|f. Els|
|00000d80| 65 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 72 65 |e rather| than re|
|00000d90| 64 75 63 74 69 6f 6e 20 | 6f 66 20 69 66 2d 63 6f |duction |of if-co|
|00000da0| 6e 64 2d 65 78 70 72 2e | 20 54 68 69 73 20 69 6e |nd-expr.| This in|
|00000db0| 73 75 72 65 73 20 74 68 | 61 74 20 74 68 65 20 45 |sures th|at the E|
|00000dc0| 6c 73 65 0d 20 20 20 69 | 73 20 61 6c 77 61 79 73 |lse. i|s always|
|00000dd0| 20 70 61 69 72 65 64 20 | 77 69 74 68 20 69 6e 6e | paired |with inn|
|00000de0| 65 72 6d 6f 73 74 20 49 | 66 2e 20 4e 6f 74 65 2c |ermost I|f. Note,|
|00000df0| 20 49 66 53 74 6d 74 20 | 69 73 20 61 20 64 75 6d | IfStmt |is a dum|
|00000e00| 6d 79 20 74 6f 6b 65 6e | 2e 20 2a 2f 0d 25 6e 6f |my token|. */.%no|
|00000e10| 6e 61 73 73 6f 63 20 49 | 66 53 74 6d 74 0d 25 6e |nassoc I|fStmt.%n|
|00000e20| 6f 6e 61 73 73 6f 63 20 | 45 6c 73 65 0d 0d 25 73 |onassoc |Else..%s|
|00000e30| 74 61 72 74 20 74 72 61 | 6e 73 6c 61 74 69 6f 6e |tart tra|nslation|
|00000e40| 5f 75 6e 69 74 0d 25 25 | 0d 0d 70 72 69 6d 61 72 |_unit.%%|..primar|
|00000e50| 79 5f 65 78 70 72 0d 20 | 20 20 3a 20 69 64 65 6e |y_expr. | : iden|
|00000e60| 74 69 66 69 65 72 20 20 | 20 7b 24 24 20 3d 20 73 |tifier | {$$ = s|
|00000e70| 79 6d 5f 6e 6f 64 65 28 | 24 31 29 3b 7d 0d 20 20 |ym_node(|$1);}. |
|00000e80| 20 7c 20 53 74 72 4c 69 | 74 20 20 20 20 20 20 20 | | StrLi|t |
|00000e90| 7b 24 24 20 3d 20 6e 6f | 64 65 30 28 50 72 69 6d |{$$ = no|de0(Prim|
|00000ea0| 72 79 4e 64 2c 20 24 31 | 29 3b 7d 0d 20 20 20 7c |ryNd, $1|);}. ||
|00000eb0| 20 4c 53 74 72 4c 69 74 | 20 20 20 20 20 20 7b 24 | LStrLit| {$|
|00000ec0| 24 20 3d 20 6e 6f 64 65 | 30 28 50 72 69 6d 72 79 |$ = node|0(Primry|
|00000ed0| 4e 64 2c 20 24 31 29 3b | 7d 0d 20 20 20 7c 20 46 |Nd, $1);|}. | F|
|00000ee0| 6c 74 43 6f 6e 73 74 20 | 20 20 20 20 7b 24 24 20 |ltConst | {$$ |
|00000ef0| 3d 20 6e 6f 64 65 30 28 | 50 72 69 6d 72 79 4e 64 |= node0(|PrimryNd|
|00000f00| 2c 20 24 31 29 3b 7d 0d | 20 20 20 7c 20 44 62 6c |, $1);}.| | Dbl|
|00000f10| 43 6f 6e 73 74 20 20 20 | 20 20 7b 24 24 20 3d 20 |Const | {$$ = |
|00000f20| 6e 6f 64 65 30 28 50 72 | 69 6d 72 79 4e 64 2c 20 |node0(Pr|imryNd, |
|00000f30| 24 31 29 3b 7d 0d 20 20 | 20 7c 20 4c 44 62 6c 43 |$1);}. | | LDblC|
|00000f40| 6f 6e 73 74 20 20 20 20 | 7b 24 24 20 3d 20 6e 6f |onst |{$$ = no|
|00000f50| 64 65 30 28 50 72 69 6d | 72 79 4e 64 2c 20 24 31 |de0(Prim|ryNd, $1|
|00000f60| 29 3b 7d 0d 20 20 20 7c | 20 43 68 61 72 43 6f 6e |);}. || CharCon|
|00000f70| 73 74 20 20 20 20 7b 24 | 24 20 3d 20 6e 6f 64 65 |st {$|$ = node|
|00000f80| 30 28 50 72 69 6d 72 79 | 4e 64 2c 20 24 31 29 3b |0(Primry|Nd, $1);|
|00000f90| 7d 0d 20 20 20 7c 20 4c | 43 68 61 72 43 6f 6e 73 |}. | L|CharCons|
|00000fa0| 74 20 20 20 7b 24 24 20 | 3d 20 6e 6f 64 65 30 28 |t {$$ |= node0(|
|00000fb0| 50 72 69 6d 72 79 4e 64 | 2c 20 24 31 29 3b 7d 0d |PrimryNd|, $1);}.|
|00000fc0| 20 20 20 7c 20 49 6e 74 | 43 6f 6e 73 74 20 20 20 | | Int|Const |
|00000fd0| 20 20 7b 24 24 20 3d 20 | 6e 6f 64 65 30 28 50 72 | {$$ = |node0(Pr|
|00000fe0| 69 6d 72 79 4e 64 2c 20 | 24 31 29 3b 7d 0d 20 20 |imryNd, |$1);}. |
|00000ff0| 20 7c 20 55 49 6e 74 43 | 6f 6e 73 74 20 20 20 20 | | UIntC|onst |
|00001000| 7b 24 24 20 3d 20 6e 6f | 64 65 30 28 50 72 69 6d |{$$ = no|de0(Prim|
|00001010| 72 79 4e 64 2c 20 24 31 | 29 3b 7d 0d 20 20 20 7c |ryNd, $1|);}. ||
|00001020| 20 4c 49 6e 74 43 6f 6e | 73 74 20 20 20 20 7b 24 | LIntCon|st {$|
|00001030| 24 20 3d 20 6e 6f 64 65 | 30 28 50 72 69 6d 72 79 |$ = node|0(Primry|
|00001040| 4e 64 2c 20 24 31 29 3b | 7d 0d 20 20 20 7c 20 55 |Nd, $1);|}. | U|
|00001050| 4c 49 6e 74 43 6f 6e 73 | 74 20 20 20 7b 24 24 20 |LIntCons|t {$$ |
|00001060| 3d 20 6e 6f 64 65 30 28 | 50 72 69 6d 72 79 4e 64 |= node0(|PrimryNd|
|00001070| 2c 20 24 31 29 3b 7d 0d | 20 20 20 7c 20 27 28 27 |, $1);}.| | '('|
|00001080| 20 65 78 70 72 20 27 29 | 27 20 7b 24 24 20 3d 20 | expr ')|' {$$ = |
|00001090| 6e 6f 64 65 31 28 50 72 | 65 66 78 4e 64 2c 20 24 |node1(Pr|efxNd, $|
|000010a0| 31 2c 20 24 32 29 3b 20 | 66 72 65 65 5f 74 28 24 |1, $2); |free_t($|
|000010b0| 33 29 3b 7d 0d 20 20 20 | 3b 0d 0d 70 6f 73 74 66 |3);}. |;..postf|
|000010c0| 69 78 5f 65 78 70 72 0d | 20 20 20 3a 20 70 72 69 |ix_expr.| : pri|
|000010d0| 6d 61 72 79 5f 65 78 70 | 72 0d 20 20 20 7c 20 70 |mary_exp|r. | p|
|000010e0| 6f 73 74 66 69 78 5f 65 | 78 70 72 20 27 5b 27 20 |ostfix_e|xpr '[' |
|000010f0| 65 78 70 72 20 27 5d 27 | 20 20 20 20 20 20 20 20 |expr ']'| |
|00001100| 20 7b 24 24 20 3d 20 6e | 6f 64 65 32 28 42 69 6e | {$$ = n|ode2(Bin|
|00001110| 72 79 4e 64 2c 20 24 32 | 2c 20 24 31 2c 20 24 33 |ryNd, $2|, $1, $3|
|00001120| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | |
|00001130| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001140| 20 20 20 20 20 20 20 20 | 20 20 20 66 72 65 65 5f | | free_|
|00001150| 74 28 24 34 29 3b 7d 0d | 20 20 20 7c 20 70 6f 73 |t($4);}.| | pos|
|00001160| 74 66 69 78 5f 65 78 70 | 72 20 27 28 27 20 27 29 |tfix_exp|r '(' ')|
|00001170| 27 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b |' | {|
|00001180| 24 24 20 3d 20 6e 6f 64 | 65 32 28 42 69 6e 72 79 |$$ = nod|e2(Binry|
|00001190| 4e 64 2c 20 24 33 2c 20 | 24 31 2c 20 4e 55 4c 4c |Nd, $3, |$1, NULL|
|000011a0| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |);. | |
|000011b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000011c0| 20 20 20 20 20 20 20 20 | 20 20 20 66 72 65 65 5f | | free_|
|000011d0| 74 28 24 32 29 3b 7d 0d | 20 20 20 7c 20 70 6f 73 |t($2);}.| | pos|
|000011e0| 74 66 69 78 5f 65 78 70 | 72 20 27 28 27 20 61 72 |tfix_exp|r '(' ar|
|000011f0| 67 5f 65 78 70 72 5f 6c | 73 74 20 27 29 27 20 7b |g_expr_l|st ')' {|
|00001200| 24 24 20 3d 20 6e 6f 64 | 65 32 28 42 69 6e 72 79 |$$ = nod|e2(Binry|
|00001210| 4e 64 2c 20 24 34 2c 20 | 24 31 2c 20 24 33 29 3b |Nd, $4, |$1, $3);|
|00001220| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001240| 20 20 20 20 20 20 20 20 | 20 66 72 65 65 5f 74 28 | | free_t(|
|00001250| 24 32 29 3b 7d 0d 20 20 | 20 7c 20 70 6f 73 74 66 |$2);}. | | postf|
|00001260| 69 78 5f 65 78 70 72 20 | 27 2e 27 20 61 6e 79 5f |ix_expr |'.' any_|
|00001270| 69 64 65 6e 74 20 20 20 | 20 20 20 20 20 7b 24 24 |ident | {$$|
|00001280| 20 3d 20 6e 6f 64 65 32 | 28 42 69 6e 72 79 4e 64 | = node2|(BinryNd|
|00001290| 2c 20 24 32 2c 20 24 31 | 2c 20 24 33 29 3b 7d 0d |, $2, $1|, $3);}.|
|000012a0| 20 20 20 7c 20 70 6f 73 | 74 66 69 78 5f 65 78 70 | | pos|tfix_exp|
|000012b0| 72 20 41 72 72 6f 77 20 | 61 6e 79 5f 69 64 65 6e |r Arrow |any_iden|
|000012c0| 74 20 20 20 20 20 20 7b | 24 24 20 3d 20 6e 6f 64 |t {|$$ = nod|
|000012d0| 65 32 28 42 69 6e 72 79 | 4e 64 2c 20 24 32 2c 20 |e2(Binry|Nd, $2, |
|000012e0| 24 31 2c 20 24 33 29 3b | 7d 0d 20 20 20 7c 20 70 |$1, $3);|}. | p|
|000012f0| 6f 73 74 66 69 78 5f 65 | 78 70 72 20 49 6e 63 72 |ostfix_e|xpr Incr|
|00001300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001310| 20 7b 24 24 20 3d 20 6e | 6f 64 65 31 28 50 73 74 | {$$ = n|ode1(Pst|
|00001320| 66 78 4e 64 2c 20 24 32 | 2c 20 24 31 29 3b 7d 0d |fxNd, $2|, $1);}.|
|00001330| 20 20 20 7c 20 70 6f 73 | 74 66 69 78 5f 65 78 70 | | pos|tfix_exp|
|00001340| 72 20 44 65 63 72 20 20 | 20 20 20 20 20 20 20 20 |r Decr | |
|00001350| 20 20 20 20 20 20 20 7b | 24 24 20 3d 20 6e 6f 64 | {|$$ = nod|
|00001360| 65 31 28 50 73 74 66 78 | 4e 64 2c 20 24 32 2c 20 |e1(Pstfx|Nd, $2, |
|00001370| 24 31 29 3b 7d 0d 20 20 | 20 7c 20 49 73 20 20 27 |$1);}. | | Is '|
|00001380| 3a 27 20 69 5f 74 79 70 | 65 5f 6e 61 6d 65 20 27 |:' i_typ|e_name '|
|00001390| 28 27 20 61 73 73 69 67 | 6e 5f 65 78 70 72 20 27 |(' assig|n_expr '|
|000013a0| 29 27 0d 20 20 20 20 20 | 20 7b 24 24 20 3d 20 6e |)'. | {$$ = n|
|000013b0| 6f 64 65 32 28 42 69 6e | 72 79 4e 64 2c 20 24 31 |ode2(Bin|ryNd, $1|
|000013c0| 2c 20 24 33 2c 20 24 35 | 29 3b 20 66 72 65 65 5f |, $3, $5|); free_|
|000013d0| 74 28 24 32 29 3b 20 66 | 72 65 65 5f 74 28 24 34 |t($2); f|ree_t($4|
|000013e0| 29 3b 20 66 72 65 65 5f | 74 28 24 36 29 3b 7d 0d |); free_|t($6);}.|
|000013f0| 20 20 20 7c 20 43 6e 76 | 20 27 3a 27 20 64 65 73 | | Cnv| ':' des|
|00001400| 74 5f 74 79 70 65 20 20 | 20 27 28 27 20 61 73 73 |t_type | '(' ass|
|00001410| 69 67 6e 5f 65 78 70 72 | 20 27 2c 27 20 61 73 73 |ign_expr| ',' ass|
|00001420| 69 67 6e 5f 65 78 70 72 | 20 27 29 27 0d 20 20 20 |ign_expr| ')'. |
|00001430| 20 20 20 7b 24 24 20 3d | 20 6e 6f 64 65 33 28 54 | {$$ =| node3(T|
|00001440| 72 6e 72 79 4e 64 2c 20 | 24 31 2c 20 24 33 2c 20 |rnryNd, |$1, $3, |
|00001450| 24 35 2c 20 24 37 29 2c | 20 66 72 65 65 5f 74 28 |$5, $7),| free_t(|
|00001460| 24 32 29 3b 20 66 72 65 | 65 5f 74 28 24 34 29 3b |$2); fre|e_t($4);|
|00001470| 20 66 72 65 65 5f 74 28 | 24 36 29 3b 0d 20 20 20 | free_t(|$6);. |
|00001480| 20 20 20 20 66 72 65 65 | 5f 74 28 24 38 29 3b 7d | free|_t($8);}|
|00001490| 0d 20 20 20 7c 20 44 65 | 66 20 27 3a 27 20 64 65 |. | De|f ':' de|
|000014a0| 73 74 5f 74 79 70 65 20 | 20 20 27 28 27 20 61 73 |st_type | '(' as|
|000014b0| 73 69 67 6e 5f 65 78 70 | 72 20 27 2c 27 20 61 73 |sign_exp|r ',' as|
|000014c0| 73 69 67 6e 5f 65 78 70 | 72 20 27 2c 27 20 61 73 |sign_exp|r ',' as|
|000014d0| 73 69 67 6e 5f 65 78 70 | 72 20 27 29 27 0d 20 20 |sign_exp|r ')'. |
|000014e0| 20 20 20 20 7b 24 24 20 | 3d 20 6e 6f 64 65 34 28 | {$$ |= node4(|
|000014f0| 51 75 61 64 4e 64 2c 20 | 24 31 2c 20 24 33 2c 20 |QuadNd, |$1, $3, |
|00001500| 24 35 2c 20 24 37 2c 20 | 24 39 29 2c 20 66 72 65 |$5, $7, |$9), fre|
|00001510| 65 5f 74 28 24 32 29 3b | 20 66 72 65 65 5f 74 28 |e_t($2);| free_t(|
|00001520| 24 34 29 3b 0d 20 20 20 | 20 20 20 20 66 72 65 65 |$4);. | free|
|00001530| 5f 74 28 24 36 29 3b 20 | 66 72 65 65 5f 74 28 24 |_t($6); |free_t($|
|00001540| 38 29 3b 20 66 72 65 65 | 5f 74 28 24 31 30 29 3b |8); free|_t($10);|
|00001550| 7d 0d 20 20 20 3b 0d 0d | 61 72 67 5f 65 78 70 72 |}. ;..|arg_expr|
|00001560| 5f 6c 73 74 0d 20 20 20 | 3a 20 61 73 73 69 67 6e |_lst. |: assign|
|00001570| 5f 65 78 70 72 0d 20 20 | 20 7c 20 61 72 67 5f 65 |_expr. | | arg_e|
|00001580| 78 70 72 5f 6c 73 74 20 | 27 2c 27 20 61 73 73 69 |xpr_lst |',' assi|
|00001590| 67 6e 5f 65 78 70 72 20 | 7b 24 24 20 3d 20 6e 6f |gn_expr |{$$ = no|
|000015a0| 64 65 32 28 43 6f 6d 6d | 61 4e 64 2c 20 24 32 2c |de2(Comm|aNd, $2,|
|000015b0| 20 24 31 2c 20 24 33 29 | 3b 7d 0d 20 20 20 3b 0d | $1, $3)|;}. ;.|
|000015c0| 0d 75 6e 61 72 79 5f 65 | 78 70 72 0d 20 20 20 3a |.unary_e|xpr. :|
|000015d0| 20 70 6f 73 74 66 69 78 | 5f 65 78 70 72 0d 20 20 | postfix|_expr. |
|000015e0| 20 7c 20 49 6e 63 72 20 | 75 6e 61 72 79 5f 65 78 | | Incr |unary_ex|
|000015f0| 70 72 20 20 20 20 20 20 | 20 20 20 20 7b 24 24 20 |pr | {$$ |
|00001600| 3d 20 6e 6f 64 65 31 28 | 50 72 65 66 78 4e 64 2c |= node1(|PrefxNd,|
|00001610| 20 24 31 2c 20 24 32 29 | 3b 7d 0d 20 20 20 7c 20 | $1, $2)|;}. | |
|00001620| 44 65 63 72 20 75 6e 61 | 72 79 5f 65 78 70 72 20 |Decr una|ry_expr |
|00001630| 20 20 20 20 20 20 20 20 | 20 7b 24 24 20 3d 20 6e | | {$$ = n|
|00001640| 6f 64 65 31 28 50 72 65 | 66 78 4e 64 2c 20 24 31 |ode1(Pre|fxNd, $1|
|00001650| 2c 20 24 32 29 3b 7d 0d | 20 20 20 7c 20 75 6e 61 |, $2);}.| | una|
|00001660| 72 79 5f 6f 70 20 63 61 | 73 74 5f 65 78 70 72 20 |ry_op ca|st_expr |
|00001670| 20 20 20 20 20 20 7b 24 | 24 20 3d 20 6e 6f 64 65 | {$|$ = node|
|00001680| 31 28 50 72 65 66 78 4e | 64 2c 20 24 31 2c 20 24 |1(PrefxN|d, $1, $|
|00001690| 32 29 3b 7d 0d 20 20 20 | 7c 20 53 69 7a 65 6f 66 |2);}. || Sizeof|
|000016a0| 20 75 6e 61 72 79 5f 65 | 78 70 72 20 20 20 20 20 | unary_e|xpr |
|000016b0| 20 20 20 7b 24 24 20 3d | 20 6e 6f 64 65 31 28 50 | {$$ =| node1(P|
|000016c0| 72 65 66 78 4e 64 2c 20 | 24 31 2c 20 24 32 29 3b |refxNd, |$1, $2);|
|000016d0| 7d 0d 20 20 20 7c 20 53 | 69 7a 65 6f 66 20 27 28 |}. | S|izeof '(|
|000016e0| 27 20 74 79 70 65 5f 6e | 61 6d 65 20 27 29 27 20 |' type_n|ame ')' |
|000016f0| 7b 24 24 20 3d 20 6e 6f | 64 65 31 28 50 72 65 66 |{$$ = no|de1(Pref|
|00001700| 78 4e 64 2c 20 24 31 2c | 20 24 33 29 3b 0d 20 20 |xNd, $1,| $3);. |
|00001710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 66 72 65 | | fre|
|00001730| 65 5f 74 28 24 32 29 3b | 20 66 72 65 65 5f 74 28 |e_t($2);| free_t(|
|00001740| 24 34 29 3b 7d 0d 20 20 | 20 3b 0d 0d 75 6e 61 72 |$4);}. | ;..unar|
|00001750| 79 5f 6f 70 0d 20 20 20 | 3a 20 27 26 27 0d 20 20 |y_op. |: '&'. |
|00001760| 20 7c 20 27 2a 27 0d 20 | 20 20 7c 20 27 2b 27 0d | | '*'. | | '+'.|
|00001770| 20 20 20 7c 20 27 2d 27 | 0d 20 20 20 7c 20 27 7e | | '-'|. | '~|
|00001780| 27 0d 20 20 20 7c 20 27 | 21 27 0d 20 20 20 3b 0d |'. | '|!'. ;.|
|00001790| 0d 63 61 73 74 5f 65 78 | 70 72 0d 20 20 20 3a 20 |.cast_ex|pr. : |
|000017a0| 75 6e 61 72 79 5f 65 78 | 70 72 0d 20 20 20 7c 20 |unary_ex|pr. | |
|000017b0| 27 28 27 20 74 79 70 65 | 5f 6e 61 6d 65 20 27 29 |'(' type|_name ')|
|000017c0| 27 20 63 61 73 74 5f 65 | 78 70 72 20 7b 24 24 20 |' cast_e|xpr {$$ |
|000017d0| 3d 20 6e 6f 64 65 32 28 | 42 69 6e 72 79 4e 64 2c |= node2(|BinryNd,|
|000017e0| 20 24 31 2c 20 24 32 2c | 20 24 34 29 3b 20 66 72 | $1, $2,| $4); fr|
|000017f0| 65 65 5f 74 28 24 33 29 | 3b 7d 0d 20 20 20 3b 0d |ee_t($3)|;}. ;.|
|00001800| 0d 6d 75 6c 74 69 70 6c | 69 63 61 74 69 76 65 5f |.multipl|icative_|
|00001810| 65 78 70 72 0d 20 20 20 | 3a 20 63 61 73 74 5f 65 |expr. |: cast_e|
|00001820| 78 70 72 0d 20 20 20 7c | 20 6d 75 6c 74 69 70 6c |xpr. || multipl|
|00001830| 69 63 61 74 69 76 65 5f | 65 78 70 72 20 27 2a 27 |icative_|expr '*'|
|00001840| 20 63 61 73 74 5f 65 78 | 70 72 20 7b 24 24 20 3d | cast_ex|pr {$$ =|
|00001850| 20 6e 6f 64 65 32 28 42 | 69 6e 72 79 4e 64 2c 20 | node2(B|inryNd, |
|00001860| 24 32 2c 20 24 31 2c 20 | 24 33 29 3b 7d 0d 20 20 |$2, $1, |$3);}. |
|00001870| 20 7c 20 6d 75 6c 74 69 | 70 6c 69 63 61 74 69 76 | | multi|plicativ|
|00001880| 65 5f 65 78 70 72 20 27 | 2f 27 20 63 61 73 74 5f |e_expr '|/' cast_|
|00001890| 65 78 70 72 20 7b 24 24 | 20 3d 20 6e 6f 64 65 32 |expr {$$| = node2|
|000018a0| 28 42 69 6e 72 79 4e 64 | 2c 20 24 32 2c 20 24 31 |(BinryNd|, $2, $1|
|000018b0| 2c 20 24 33 29 3b 7d 0d | 20 20 20 7c 20 6d 75 6c |, $3);}.| | mul|
|000018c0| 74 69 70 6c 69 63 61 74 | 69 76 65 5f 65 78 70 72 |tiplicat|ive_expr|
|000018d0| 20 27 25 27 20 63 61 73 | 74 5f 65 78 70 72 20 7b | '%' cas|t_expr {|
|000018e0| 24 24 20 3d 20 6e 6f 64 | 65 32 28 42 69 6e 72 79 |$$ = nod|e2(Binry|
|000018f0| 4e 64 2c 20 24 32 2c 20 | 24 31 2c 20 24 33 29 3b |Nd, $2, |$1, $3);|
|00001900| 7d 0d 20 20 20 3b 0d 0d | 61 64 64 69 74 69 76 65 |}. ;..|additive|
|00001910| 5f 65 78 70 72 0d 20 20 | 20 3a 20 6d 75 6c 74 69 |_expr. | : multi|
|00001920| 70 6c 69 63 61 74 69 76 | 65 5f 65 78 70 72 0d 20 |plicativ|e_expr. |
|00001930| 20 20 7c 20 61 64 64 69 | 74 69 76 65 5f 65 78 70 | | addi|tive_exp|
|00001940| 72 20 27 2b 27 20 6d 75 | 6c 74 69 70 6c 69 63 61 |r '+' mu|ltiplica|
|00001950| 74 69 76 65 5f 65 78 70 | 72 20 7b 24 24 20 3d 20 |tive_exp|r {$$ = |
|00001960| 6e 6f 64 65 32 28 42 69 | 6e 72 79 4e 64 2c 20 24 |node2(Bi|nryNd, $|
|00001970| 32 2c 20 24 31 2c 20 24 | 33 29 3b 7d 0d 20 20 20 |2, $1, $|3);}. |
|00001980| 7c 20 61 64 64 69 74 69 | 76 65 5f 65 78 70 72 20 || additi|ve_expr |
|00001990| 27 2d 27 20 6d 75 6c 74 | 69 70 6c 69 63 61 74 69 |'-' mult|iplicati|
|000019a0| 76 65 5f 65 78 70 72 20 | 7b 24 24 20 3d 20 6e 6f |ve_expr |{$$ = no|
|000019b0| 64 65 32 28 42 69 6e 72 | 79 4e 64 2c 20 24 32 2c |de2(Binr|yNd, $2,|
|000019c0| 20 24 31 2c 20 24 33 29 | 3b 7d 0d 20 20 20 3b 0d | $1, $3)|;}. ;.|
|000019d0| 0d 73 68 69 66 74 5f 65 | 78 70 72 0d 20 20 20 3a |.shift_e|xpr. :|
|000019e0| 20 61 64 64 69 74 69 76 | 65 5f 65 78 70 72 0d 20 | additiv|e_expr. |
|000019f0| 20 20 7c 20 73 68 69 66 | 74 5f 65 78 70 72 20 4c | | shif|t_expr L|
|00001a00| 53 68 66 74 20 61 64 64 | 69 74 69 76 65 5f 65 78 |Shft add|itive_ex|
|00001a10| 70 72 20 7b 24 24 20 3d | 20 6e 6f 64 65 32 28 42 |pr {$$ =| node2(B|
|00001a20| 69 6e 72 79 4e 64 2c 20 | 24 32 2c 20 24 31 2c 20 |inryNd, |$2, $1, |
|00001a30| 24 33 29 3b 7d 0d 20 20 | 20 7c 20 73 68 69 66 74 |$3);}. | | shift|
|00001a40| 5f 65 78 70 72 20 52 53 | 68 66 74 20 61 64 64 69 |_expr RS|hft addi|
|00001a50| 74 69 76 65 5f 65 78 70 | 72 20 7b 24 24 20 3d 20 |tive_exp|r {$$ = |
|00001a60| 6e 6f 64 65 32 28 42 69 | 6e 72 79 4e 64 2c 20 24 |node2(Bi|nryNd, $|
|00001a70| 32 2c 20 24 31 2c 20 24 | 33 29 3b 7d 0d 20 20 20 |2, $1, $|3);}. |
|00001a80| 3b 0d 0d 72 65 6c 61 74 | 69 6f 6e 61 6c 5f 65 78 |;..relat|ional_ex|
|00001a90| 70 72 0d 20 20 20 3a 20 | 73 68 69 66 74 5f 65 78 |pr. : |shift_ex|
|00001aa0| 70 72 0d 20 20 20 7c 20 | 72 65 6c 61 74 69 6f 6e |pr. | |relation|
|00001ab0| 61 6c 5f 65 78 70 72 20 | 27 3c 27 20 73 68 69 66 |al_expr |'<' shif|
|00001ac0| 74 5f 65 78 70 72 20 7b | 24 24 20 3d 20 6e 6f 64 |t_expr {|$$ = nod|
|00001ad0| 65 32 28 42 69 6e 72 79 | 4e 64 2c 20 24 32 2c 20 |e2(Binry|Nd, $2, |
|00001ae0| 24 31 2c 20 24 33 29 3b | 7d 0d 20 20 20 7c 20 72 |$1, $3);|}. | r|
|00001af0| 65 6c 61 74 69 6f 6e 61 | 6c 5f 65 78 70 72 20 27 |elationa|l_expr '|
|00001b00| 3e 27 20 73 68 69 66 74 | 5f 65 78 70 72 20 7b 24 |>' shift|_expr {$|
|00001b10| 24 20 3d 20 6e 6f 64 65 | 32 28 42 69 6e 72 79 4e |$ = node|2(BinryN|
|00001b20| 64 2c 20 24 32 2c 20 24 | 31 2c 20 24 33 29 3b 7d |d, $2, $|1, $3);}|
|00001b30| 0d 20 20 20 7c 20 72 65 | 6c 61 74 69 6f 6e 61 6c |. | re|lational|
|00001b40| 5f 65 78 70 72 20 4c 65 | 71 20 73 68 69 66 74 5f |_expr Le|q shift_|
|00001b50| 65 78 70 72 20 7b 24 24 | 20 3d 20 6e 6f 64 65 32 |expr {$$| = node2|
|00001b60| 28 42 69 6e 72 79 4e 64 | 2c 20 24 32 2c 20 24 31 |(BinryNd|, $2, $1|
|00001b70| 2c 20 24 33 29 3b 7d 0d | 20 20 20 7c 20 72 65 6c |, $3);}.| | rel|
|00001b80| 61 74 69 6f 6e 61 6c 5f | 65 78 70 72 20 47 65 71 |ational_|expr Geq|
|00001b90| 20 73 68 69 66 74 5f 65 | 78 70 72 20 7b 24 24 20 | shift_e|xpr {$$ |
|00001ba0| 3d 20 6e 6f 64 65 32 28 | 42 69 6e 72 79 4e 64 2c |= node2(|BinryNd,|
|00001bb0| 20 24 32 2c 20 24 31 2c | 20 24 33 29 3b 7d 0d 20 | $2, $1,| $3);}. |
|00001bc0| 20 20 3b 0d 0d 65 71 75 | 61 6c 69 74 79 5f 65 78 | ;..equ|ality_ex|
|00001bd0| 70 72 0d 20 20 20 3a 20 | 72 65 6c 61 74 69 6f 6e |pr. : |relation|
|00001be0| 61 6c 5f 65 78 70 72 0d | 20 20 20 7c 20 65 71 75 |al_expr.| | equ|
|00001bf0| 61 6c 69 74 79 5f 65 78 | 70 72 20 45 71 75 61 6c |ality_ex|pr Equal|
|00001c00| 20 72 65 6c 61 74 69 6f | 6e 61 6c 5f 65 78 70 72 | relatio|nal_expr|
|00001c10| 20 7b 24 24 20 3d 20 6e | 6f 64 65 32 28 42 69 6e | {$$ = n|ode2(Bin|
|00001c20| 72 79 4e 64 2c 20 24 32 | 2c 20 24 31 2c 20 24 33 |ryNd, $2|, $1, $3|
|00001c30| 29 3b 7d 0d 20 20 20 7c | 20 65 71 75 61 6c 69 74 |);}. || equalit|
|00001c40| 79 5f 65 78 70 72 20 4e | 65 71 20 20 20 72 65 6c |y_expr N|eq rel|
|00001c50| 61 74 69 6f 6e 61 6c 5f | 65 78 70 72 20 7b 24 24 |ational_|expr {$$|
|00001c60| 20 3d 20 6e 6f 64 65 32 | 28 42 69 6e 72 79 4e 64 | = node2|(BinryNd|
|00001c70| 2c 20 24 32 2c 20 24 31 | 2c 20 24 33 29 3b 7d 0d |, $2, $1|, $3);}.|
|00001c80| 20 20 20 3b 0d 0d 61 6e | 64 5f 65 78 70 72 0d 20 | ;..an|d_expr. |
|00001c90| 20 20 3a 20 65 71 75 61 | 6c 69 74 79 5f 65 78 70 | : equa|lity_exp|
|00001ca0| 72 0d 20 20 20 7c 20 61 | 6e 64 5f 65 78 70 72 20 |r. | a|nd_expr |
|00001cb0| 27 26 27 20 65 71 75 61 | 6c 69 74 79 5f 65 78 70 |'&' equa|lity_exp|
|00001cc0| 72 20 7b 24 24 20 3d 20 | 6e 6f 64 65 32 28 42 69 |r {$$ = |node2(Bi|
|00001cd0| 6e 72 79 4e 64 2c 20 24 | 32 2c 20 24 31 2c 20 24 |nryNd, $|2, $1, $|
|00001ce0| 33 29 3b 7d 0d 20 20 20 | 3b 0d 0d 65 78 63 6c 75 |3);}. |;..exclu|
|00001cf0| 73 69 76 65 5f 6f 72 5f | 65 78 70 72 0d 20 20 20 |sive_or_|expr. |
|00001d00| 3a 20 61 6e 64 5f 65 78 | 70 72 0d 20 20 20 7c 20 |: and_ex|pr. | |
|00001d10| 65 78 63 6c 75 73 69 76 | 65 5f 6f 72 5f 65 78 70 |exclusiv|e_or_exp|
|00001d20| 72 20 27 5e 27 20 61 6e | 64 5f 65 78 70 72 20 7b |r '^' an|d_expr {|
|00001d30| 24 24 20 3d 20 6e 6f 64 | 65 32 28 42 69 6e 72 79 |$$ = nod|e2(Binry|
|00001d40| 4e 64 2c 20 24 32 2c 20 | 24 31 2c 20 24 33 29 3b |Nd, $2, |$1, $3);|
|00001d50| 7d 0d 20 20 20 3b 0d 0d | 69 6e 63 6c 75 73 69 76 |}. ;..|inclusiv|
|00001d60| 65 5f 6f 72 5f 65 78 70 | 72 0d 20 20 20 3a 20 65 |e_or_exp|r. : e|
|00001d70| 78 63 6c 75 73 69 76 65 | 5f 6f 72 5f 65 78 70 72 |xclusive|_or_expr|
|00001d80| 0d 20 20 20 7c 20 69 6e | 63 6c 75 73 69 76 65 5f |. | in|clusive_|
|00001d90| 6f 72 5f 65 78 70 72 20 | 27 7c 27 20 65 78 63 6c |or_expr |'|' excl|
|00001da0| 75 73 69 76 65 5f 6f 72 | 5f 65 78 70 72 20 7b 24 |usive_or|_expr {$|
|00001db0| 24 20 3d 20 6e 6f 64 65 | 32 28 42 69 6e 72 79 4e |$ = node|2(BinryN|
|00001dc0| 64 2c 20 24 32 2c 20 24 | 31 2c 20 24 33 29 3b 7d |d, $2, $|1, $3);}|
|00001dd0| 0d 20 20 20 3b 0d 0d 6c | 6f 67 69 63 61 6c 5f 61 |. ;..l|ogical_a|
|00001de0| 6e 64 5f 65 78 70 72 0d | 20 20 20 3a 20 69 6e 63 |nd_expr.| : inc|
|00001df0| 6c 75 73 69 76 65 5f 6f | 72 5f 65 78 70 72 0d 20 |lusive_o|r_expr. |
|00001e00| 20 20 7c 20 6c 6f 67 69 | 63 61 6c 5f 61 6e 64 5f | | logi|cal_and_|
|00001e10| 65 78 70 72 20 41 6e 64 | 20 69 6e 63 6c 75 73 69 |expr And| inclusi|
|00001e20| 76 65 5f 6f 72 5f 65 78 | 70 72 20 7b 24 24 20 3d |ve_or_ex|pr {$$ =|
|00001e30| 20 6e 6f 64 65 32 28 42 | 69 6e 72 79 4e 64 2c 20 | node2(B|inryNd, |
|00001e40| 24 32 2c 20 24 31 2c 20 | 24 33 29 3b 7d 0d 20 20 |$2, $1, |$3);}. |
|00001e50| 20 3b 0d 0d 6c 6f 67 69 | 63 61 6c 5f 6f 72 5f 65 | ;..logi|cal_or_e|
|00001e60| 78 70 72 0d 20 20 20 3a | 20 6c 6f 67 69 63 61 6c |xpr. :| logical|
|00001e70| 5f 61 6e 64 5f 65 78 70 | 72 0d 20 20 20 7c 20 6c |_and_exp|r. | l|
|00001e80| 6f 67 69 63 61 6c 5f 6f | 72 5f 65 78 70 72 20 4f |ogical_o|r_expr O|
|00001e90| 72 20 6c 6f 67 69 63 61 | 6c 5f 61 6e 64 5f 65 78 |r logica|l_and_ex|
|00001ea0| 70 72 20 7b 24 24 20 3d | 20 6e 6f 64 65 32 28 42 |pr {$$ =| node2(B|
|00001eb0| 69 6e 72 79 4e 64 2c 20 | 24 32 2c 20 24 31 2c 20 |inryNd, |$2, $1, |
|00001ec0| 24 33 29 3b 7d 0d 20 20 | 20 3b 0d 0d 63 6f 6e 64 |$3);}. | ;..cond|
|00001ed0| 69 74 69 6f 6e 61 6c 5f | 65 78 70 72 0d 20 20 20 |itional_|expr. |
|00001ee0| 3a 20 6c 6f 67 69 63 61 | 6c 5f 6f 72 5f 65 78 70 |: logica|l_or_exp|
|00001ef0| 72 0d 20 20 20 7c 20 6c | 6f 67 69 63 61 6c 5f 6f |r. | l|ogical_o|
|00001f00| 72 5f 65 78 70 72 20 27 | 3f 27 20 65 78 70 72 20 |r_expr '|?' expr |
|00001f10| 27 3a 27 20 63 6f 6e 64 | 69 74 69 6f 6e 61 6c 5f |':' cond|itional_|
|00001f20| 65 78 70 72 0d 20 20 20 | 20 20 20 20 20 20 20 20 |expr. | |
|00001f30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 24 | | {$|
|00001f50| 24 20 3d 20 6e 6f 64 65 | 33 28 54 72 6e 72 79 4e |$ = node|3(TrnryN|
|00001f60| 64 2c 20 24 32 2c 20 24 | 31 2c 20 24 33 2c 20 24 |d, $2, $|1, $3, $|
|00001f70| 35 29 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |5);. | |
|00001f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 66 72 | | fr|
|00001fa0| 65 65 5f 74 28 24 34 29 | 3b 7d 0d 20 20 20 3b 0d |ee_t($4)|;}. ;.|
|00001fb0| 0d 61 73 73 69 67 6e 5f | 65 78 70 72 0d 20 20 20 |.assign_|expr. |
|00001fc0| 3a 20 63 6f 6e 64 69 74 | 69 6f 6e 61 6c 5f 65 78 |: condit|ional_ex|
|00001fd0| 70 72 0d 20 20 20 7c 20 | 75 6e 61 72 79 5f 65 78 |pr. | |unary_ex|
|00001fe0| 70 72 20 61 73 73 69 67 | 6e 5f 6f 70 20 61 73 73 |pr assig|n_op ass|
|00001ff0| 69 67 6e 5f 65 78 70 72 | 20 7b 24 24 20 3d 20 6e |ign_expr| {$$ = n|
|00002000| 6f 64 65 32 28 42 69 6e | 72 79 4e 64 2c 20 24 32 |ode2(Bin|ryNd, $2|
|00002010| 2c 20 24 31 2c 20 24 33 | 29 3b 7d 0d 20 20 20 3b |, $1, $3|);}. ;|
|00002020| 0d 0d 61 73 73 69 67 6e | 5f 6f 70 0d 20 20 20 3a |..assign|_op. :|
|00002030| 20 27 3d 27 0d 20 20 20 | 7c 20 4d 75 6c 74 41 73 | '='. || MultAs|
|00002040| 67 6e 0d 20 20 20 7c 20 | 44 69 76 41 73 67 6e 0d |gn. | |DivAsgn.|
|00002050| 20 20 20 7c 20 4d 6f 64 | 41 73 67 6e 0d 20 20 20 | | Mod|Asgn. |
|00002060| 7c 20 50 6c 75 73 41 73 | 67 6e 0d 20 20 20 7c 20 || PlusAs|gn. | |
|00002070| 4d 69 6e 75 73 41 73 67 | 6e 0d 20 20 20 7c 20 4c |MinusAsg|n. | L|
|00002080| 53 68 66 74 41 73 67 6e | 0d 20 20 20 7c 20 52 53 |ShftAsgn|. | RS|
|00002090| 68 66 74 41 73 67 6e 0d | 20 20 20 7c 20 41 6e 64 |hftAsgn.| | And|
|000020a0| 41 73 67 6e 0d 20 20 20 | 7c 20 58 6f 72 41 73 67 |Asgn. || XorAsg|
|000020b0| 6e 0d 20 20 20 7c 20 4f | 72 41 73 67 6e 0d 20 20 |n. | O|rAsgn. |
|000020c0| 20 3b 0d 0d 65 78 70 72 | 0d 20 20 20 3a 20 61 73 | ;..expr|. : as|
|000020d0| 73 69 67 6e 5f 65 78 70 | 72 0d 20 20 20 7c 20 65 |sign_exp|r. | e|
|000020e0| 78 70 72 20 27 2c 27 20 | 61 73 73 69 67 6e 5f 65 |xpr ',' |assign_e|
|000020f0| 78 70 72 20 7b 24 24 20 | 3d 20 6e 6f 64 65 32 28 |xpr {$$ |= node2(|
|00002100| 42 69 6e 72 79 4e 64 2c | 20 24 32 2c 20 24 31 2c |BinryNd,| $2, $1,|
|00002110| 20 24 33 29 3b 7d 0d 20 | 20 20 3b 0d 0d 6f 70 74 | $3);}. | ;..opt|
|00002120| 5f 65 78 70 72 0d 20 20 | 20 3a 20 7b 24 24 20 3d |_expr. | : {$$ =|
|00002130| 20 4e 55 4c 4c 3b 7d 0d | 20 20 20 7c 20 65 78 70 | NULL;}.| | exp|
|00002140| 72 0d 20 20 20 3b 0d 0d | 63 6f 6e 73 74 61 6e 74 |r. ;..|constant|
|00002150| 5f 65 78 70 72 0d 20 20 | 20 3a 20 63 6f 6e 64 69 |_expr. | : condi|
|00002160| 74 69 6f 6e 61 6c 5f 65 | 78 70 72 0d 20 20 20 3b |tional_e|xpr. ;|
|00002170| 0d 0d 6f 70 74 5f 63 6f | 6e 73 74 61 6e 74 5f 65 |..opt_co|nstant_e|
|00002180| 78 70 72 0d 20 20 20 3a | 20 7b 24 24 20 3d 20 4e |xpr. :| {$$ = N|
|00002190| 55 4c 4c 3b 7d 0d 20 20 | 20 7c 20 63 6f 6e 73 74 |ULL;}. | | const|
|000021a0| 61 6e 74 5f 65 78 70 72 | 0d 20 20 20 3b 0d 0d 64 |ant_expr|. ;..d|
|000021b0| 63 6c 74 69 6f 6e 0d 20 | 20 20 3a 20 20 74 79 70 |cltion. | : typ|
|000021c0| 5f 64 63 6c 74 69 6f 6e | 5f 73 70 65 63 73 20 27 |_dcltion|_specs '|
|000021d0| 3b 27 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;' | |
|000021e0| 20 20 20 7b 24 24 20 3d | 20 6e 6f 64 65 32 28 42 | {$$ =| node2(B|
|000021f0| 69 6e 72 79 4e 64 2c 20 | 24 32 2c 20 24 31 2c 20 |inryNd, |$2, $1, |
|00002200| 4e 55 4c 4c 29 3b 0d 20 | 20 20 20 20 20 20 20 20 |NULL);. | |
|00002210| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002230| 20 20 20 20 64 63 6c 5f | 73 74 6b 2d 3e 6b 69 6e | dcl_|stk->kin|
|00002240| 64 5f 64 63 6c 20 3d 20 | 4f 74 68 65 72 44 63 6c |d_dcl = |OtherDcl|
|00002250| 3b 7d 0d 20 20 20 7c 20 | 20 74 79 70 5f 64 63 6c |;}. | | typ_dcl|
|00002260| 74 69 6f 6e 5f 73 70 65 | 63 73 20 69 6e 69 74 5f |tion_spe|cs init_|
|00002270| 64 63 6c 74 6f 72 5f 6c | 73 74 20 27 3b 27 20 7b |dcltor_l|st ';' {|
|00002280| 24 24 20 3d 20 6e 6f 64 | 65 32 28 42 69 6e 72 79 |$$ = nod|e2(Binry|
|00002290| 4e 64 2c 20 24 33 2c 20 | 24 31 2c 20 24 32 29 3b |Nd, $3, |$1, $2);|
|000022a0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000022b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 64 63 | | dc|
|000022d0| 6c 5f 73 74 6b 2d 3e 6b | 69 6e 64 5f 64 63 6c 20 |l_stk->k|ind_dcl |
|000022e0| 3d 20 4f 74 68 65 72 44 | 63 6c 3b 7d 0d 20 20 20 |= OtherD|cl;}. |
|000022f0| 7c 20 20 73 74 6f 72 63 | 6c 5f 74 71 75 61 6c 5f || storc|l_tqual_|
|00002300| 6c 73 74 20 6e 6f 5f 74 | 64 6e 5f 69 6e 69 74 5f |lst no_t|dn_init_|
|00002310| 64 63 6c 74 6f 72 5f 6c | 73 74 20 27 3b 27 0d 20 |dcltor_l|st ';'. |
|00002320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002340| 20 20 20 20 20 20 20 20 | 20 20 20 7b 24 24 20 3d | | {$$ =|
|00002350| 20 6e 6f 64 65 32 28 42 | 69 6e 72 79 4e 64 2c 20 | node2(B|inryNd, |
|00002360| 24 33 2c 20 24 31 2c 20 | 24 32 29 3b 0d 20 20 20 |$3, $1, |$2);. |
|00002370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002390| 20 20 20 20 20 20 20 20 | 20 20 64 63 6c 5f 73 74 | | dcl_st|
|000023a0| 6b 2d 3e 6b 69 6e 64 5f | 64 63 6c 20 3d 20 4f 74 |k->kind_|dcl = Ot|
|000023b0| 68 65 72 44 63 6c 3b 7d | 0d 20 20 20 3b 0d 0d 74 |herDcl;}|. ;..t|
|000023c0| 79 70 5f 64 63 6c 74 69 | 6f 6e 5f 73 70 65 63 73 |yp_dclti|on_specs|
|000023d0| 0d 20 20 20 3a 20 20 20 | 20 20 20 20 20 20 20 20 |. : | |
|000023e0| 20 20 20 20 20 20 20 74 | 79 70 65 5f 69 6e 64 0d | t|ype_ind.|
|000023f0| 20 20 20 7c 20 73 74 6f | 72 63 6c 5f 74 71 75 61 | | sto|rcl_tqua|
|00002400| 6c 5f 6c 73 74 20 74 79 | 70 65 5f 69 6e 64 20 7b |l_lst ty|pe_ind {|
|00002410| 24 24 20 3d 20 6e 6f 64 | 65 32 28 4c 73 74 4e 64 |$$ = nod|e2(LstNd|
|00002420| 2c 20 4e 55 4c 4c 2c 20 | 24 31 2c 20 24 32 29 3b |, NULL, |$1, $2);|
|00002430| 7d 0d 20 20 20 3b 0d 0d | 64 63 6c 74 69 6f 6e 5f |}. ;..|dcltion_|
|00002440| 73 70 65 63 73 0d 20 20 | 20 3a 20 74 79 70 5f 64 |specs. | : typ_d|
|00002450| 63 6c 74 69 6f 6e 5f 73 | 70 65 63 73 0d 20 20 20 |cltion_s|pecs. |
|00002460| 7c 20 73 74 6f 72 63 6c | 5f 74 71 75 61 6c 5f 6c || storcl|_tqual_l|
|00002470| 73 74 0d 20 20 20 3b 0d | 0d 74 79 70 65 5f 69 6e |st. ;.|.type_in|
|00002480| 64 0d 20 20 20 3a 20 74 | 79 70 65 64 65 66 6e 61 |d. : t|ypedefna|
|00002490| 6d 65 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b |me | {|
|000024a0| 24 24 20 3d 20 6e 6f 64 | 65 30 28 50 72 69 6d 72 |$$ = nod|e0(Primr|
|000024b0| 79 4e 64 2c 20 24 31 29 | 3b 7d 0d 20 20 20 7c 20 |yNd, $1)|;}. | |
|000024c0| 74 79 70 65 64 65 66 6e | 61 6d 65 20 73 74 6f 72 |typedefn|ame stor|
|000024d0| 63 6c 5f 74 71 75 61 6c | 5f 6c 73 74 0d 20 20 20 |cl_tqual|_lst. |
|000024e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024f0| 20 20 20 20 20 20 20 20 | 20 20 7b 24 24 20 3d 20 | | {$$ = |
|00002500| 6e 6f 64 65 32 28 4c 73 | 74 4e 64 2c 20 4e 55 4c |node2(Ls|tNd, NUL|
|00002510| 4c 2c 20 6e 6f 64 65 30 | 28 50 72 69 6d 72 79 4e |L, node0|(PrimryN|
|00002520| 64 2c 20 24 31 29 2c 20 | 24 32 29 3b 7d 0d 20 20 |d, $1), |$2);}. |
|00002530| 20 7c 20 74 79 70 65 5f | 73 74 6f 72 63 6c 5f 74 | | type_|storcl_t|
|00002540| 71 75 61 6c 5f 6c 73 74 | 0d 20 20 20 3b 0d 0d 74 |qual_lst|. ;..t|
|00002550| 79 70 65 5f 73 74 6f 72 | 63 6c 5f 74 71 75 61 6c |ype_stor|cl_tqual|
|00002560| 5f 6c 73 74 0d 20 20 20 | 3a 20 73 74 6e 64 5f 74 |_lst. |: stnd_t|
|00002570| 79 70 65 0d 20 20 20 7c | 20 74 79 70 65 5f 73 74 |ype. || type_st|
|00002580| 6f 72 63 6c 5f 74 71 75 | 61 6c 5f 6c 73 74 20 73 |orcl_tqu|al_lst s|
|00002590| 74 6e 64 5f 74 79 70 65 | 20 20 20 20 20 20 20 20 |tnd_type| |
|000025a0| 20 20 7b 24 24 20 3d 20 | 6e 6f 64 65 32 28 4c 73 | {$$ = |node2(Ls|
|000025b0| 74 4e 64 2c 20 4e 55 4c | 4c 2c 20 24 31 2c 20 24 |tNd, NUL|L, $1, $|
|000025c0| 32 29 3b 7d 0d 20 20 20 | 7c 20 74 79 70 65 5f 73 |2);}. || type_s|
|000025d0| 74 6f 72 63 6c 5f 74 71 | 75 61 6c 5f 6c 73 74 20 |torcl_tq|ual_lst |
|000025e0| 73 74 6f 72 61 67 65 5f | 63 6c 61 73 73 5f 73 70 |storage_|class_sp|
|000025f0| 65 63 20 7b 24 24 20 3d | 20 6e 6f 64 65 32 28 4c |ec {$$ =| node2(L|
|00002600| 73 74 4e 64 2c 20 4e 55 | 4c 4c 2c 20 24 31 2c 20 |stNd, NU|LL, $1, |
|00002610| 24 32 29 3b 7d 0d 20 20 | 20 7c 20 74 79 70 65 5f |$2);}. | | type_|
|00002620| 73 74 6f 72 63 6c 5f 74 | 71 75 61 6c 5f 6c 73 74 |storcl_t|qual_lst|
|00002630| 20 74 79 70 65 5f 71 75 | 61 6c 20 20 20 20 20 20 | type_qu|al |
|00002640| 20 20 20 20 7b 24 24 20 | 3d 20 6e 6f 64 65 32 28 | {$$ |= node2(|
|00002650| 4c 73 74 4e 64 2c 20 4e | 55 4c 4c 2c 20 24 31 2c |LstNd, N|ULL, $1,|
|00002660| 20 24 32 29 3b 7d 0d 20 | 20 20 3b 0d 0d 73 74 6f | $2);}. | ;..sto|
|00002670| 72 63 6c 5f 74 71 75 61 | 6c 5f 6c 73 74 0d 20 20 |rcl_tqua|l_lst. |
|00002680| 20 3a 20 73 74 6f 72 61 | 67 65 5f 63 6c 61 73 73 | : stora|ge_class|
|00002690| 5f 73 70 65 63 0d 20 20 | 20 7c 20 74 79 70 65 5f |_spec. | | type_|
|000026a0| 71 75 61 6c 0d 20 20 20 | 7c 20 73 74 6f 72 63 6c |qual. || storcl|
|000026b0| 5f 74 71 75 61 6c 5f 6c | 73 74 20 73 74 6f 72 61 |_tqual_l|st stora|
|000026c0| 67 65 5f 63 6c 61 73 73 | 5f 73 70 65 63 20 7b 24 |ge_class|_spec {$|
|000026d0| 24 20 3d 20 6e 6f 64 65 | 32 28 4c 73 74 4e 64 2c |$ = node|2(LstNd,|
|000026e0| 20 4e 55 4c 4c 2c 20 24 | 31 2c 20 24 32 29 3b 7d | NULL, $|1, $2);}|
|000026f0| 0d 20 20 20 7c 20 73 74 | 6f 72 63 6c 5f 74 71 75 |. | st|orcl_tqu|
|00002700| 61 6c 5f 6c 73 74 20 74 | 79 70 65 5f 71 75 61 6c |al_lst t|ype_qual|
|00002710| 20 20 20 20 20 20 20 20 | 20 20 7b 24 24 20 3d 20 | | {$$ = |
|00002720| 6e 6f 64 65 32 28 4c 73 | 74 4e 64 2c 20 4e 55 4c |node2(Ls|tNd, NUL|
|00002730| 4c 2c 20 24 31 2c 20 24 | 32 29 3b 7d 0d 20 20 20 |L, $1, $|2);}. |
|00002740| 3b 0d 0d 69 6e 69 74 5f | 64 63 6c 74 6f 72 5f 6c |;..init_|dcltor_l|
|00002750| 73 74 0d 20 20 20 3a 20 | 69 6e 69 74 5f 64 63 6c |st. : |init_dcl|
|00002760| 74 6f 72 0d 20 20 20 7c | 20 69 6e 69 74 5f 64 63 |tor. || init_dc|
|00002770| 6c 74 6f 72 5f 6c 73 74 | 20 27 2c 27 20 69 6e 69 |ltor_lst| ',' ini|
|00002780| 74 5f 64 63 6c 74 6f 72 | 20 7b 24 24 20 3d 20 6e |t_dcltor| {$$ = n|
|00002790| 6f 64 65 32 28 43 6f 6d | 6d 61 4e 64 2c 20 24 32 |ode2(Com|maNd, $2|
|000027a0| 2c 20 24 31 2c 20 24 33 | 29 3b 7d 0d 20 20 20 3b |, $1, $3|);}. ;|
|000027b0| 0d 0d 6e 6f 5f 74 64 6e | 5f 69 6e 69 74 5f 64 63 |..no_tdn|_init_dc|
|000027c0| 6c 74 6f 72 5f 6c 73 74 | 0d 20 20 20 3a 20 6e 6f |ltor_lst|. : no|
|000027d0| 5f 74 64 6e 5f 69 6e 69 | 74 5f 64 63 6c 74 6f 72 |_tdn_ini|t_dcltor|
|000027e0| 0d 20 20 20 7c 20 6e 6f | 5f 74 64 6e 5f 69 6e 69 |. | no|_tdn_ini|
|000027f0| 74 5f 64 63 6c 74 6f 72 | 5f 6c 73 74 20 27 2c 27 |t_dcltor|_lst ','|
|00002800| 20 6e 6f 5f 74 64 6e 5f | 69 6e 69 74 5f 64 63 6c | no_tdn_|init_dcl|
|00002810| 74 6f 72 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |tor. | |
|00002820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002840| 20 20 7b 24 24 20 3d 20 | 6e 6f 64 65 32 28 43 6f | {$$ = |node2(Co|
|00002850| 6d 6d 61 4e 64 2c 20 24 | 32 2c 20 24 31 2c 20 24 |mmaNd, $|2, $1, $|
|00002860| 33 29 3b 7d 0d 20 20 20 | 3b 0d 0d 69 6e 69 74 5f |3);}. |;..init_|
|00002870| 64 63 6c 74 6f 72 0d 20 | 20 20 3a 20 64 63 6c 74 |dcltor. | : dclt|
|00002880| 6f 72 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |or | |
|00002890| 20 20 20 7b 24 24 20 3d | 20 24 31 3b 20 69 64 5f | {$$ =| $1; id_|
|000028a0| 64 65 66 28 24 31 2c 20 | 4e 55 4c 4c 29 3b 7d 0d |def($1, |NULL);}.|
|000028b0| 20 20 20 7c 20 64 63 6c | 74 6f 72 20 27 3d 27 20 | | dcl|tor '=' |
|000028c0| 69 6e 69 74 69 61 6c 69 | 7a 65 72 20 7b 24 24 20 |initiali|zer {$$ |
|000028d0| 3d 20 6e 6f 64 65 32 28 | 42 69 6e 72 79 4e 64 2c |= node2(|BinryNd,|
|000028e0| 20 24 32 2c 20 24 31 2c | 20 24 33 29 3b 20 69 64 | $2, $1,| $3); id|
|000028f0| 5f 64 65 66 28 24 31 2c | 20 24 33 29 3b 7d 0d 20 |_def($1,| $3);}. |
|00002900| 20 20 3b 0d 0d 6e 6f 5f | 74 64 6e 5f 69 6e 69 74 | ;..no_|tdn_init|
|00002910| 5f 64 63 6c 74 6f 72 0d | 20 20 20 3a 20 6e 6f 5f |_dcltor.| : no_|
|00002920| 74 64 6e 5f 64 63 6c 74 | 6f 72 20 20 20 20 20 20 |tdn_dclt|or |
|00002930| 20 20 20 20 20 20 7b 24 | 24 20 3d 20 24 31 3b 20 | {$|$ = $1; |
|00002940| 69 64 5f 64 65 66 28 24 | 31 2c 20 4e 55 4c 4c 29 |id_def($|1, NULL)|
|00002950| 3b 7d 0d 20 20 20 7c 20 | 6e 6f 5f 74 64 6e 5f 64 |;}. | |no_tdn_d|
|00002960| 63 6c 74 6f 72 20 27 3d | 27 20 69 6e 69 74 69 61 |cltor '=|' initia|
|00002970| 6c 69 7a 65 72 0d 20 20 | 20 20 20 20 20 20 20 20 |lizer. | |
|00002980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002990| 20 20 20 20 7b 24 24 20 | 3d 20 6e 6f 64 65 32 28 | {$$ |= node2(|
|000029a0| 42 69 6e 72 79 4e 64 2c | 20 24 32 2c 20 24 31 2c |BinryNd,| $2, $1,|
|000029b0| 20 24 33 29 3b 20 69 64 | 5f 64 65 66 28 24 31 2c | $3); id|_def($1,|
|000029c0| 20 24 33 29 3b 7d 0d 20 | 20 20 3b 0d 0d 73 74 6f | $3);}. | ;..sto|
|000029d0| 72 61 67 65 5f 63 6c 61 | 73 73 5f 73 70 65 63 0d |rage_cla|ss_spec.|
|000029e0| 20 20 20 3a 20 54 79 70 | 65 64 65 66 20 20 7b 24 | : Typ|edef {$|
|000029f0| 24 20 3d 20 6e 6f 64 65 | 30 28 50 72 69 6d 72 79 |$ = node|0(Primry|
|00002a00| 4e 64 2c 20 24 31 29 3b | 20 64 63 6c 5f 73 74 6b |Nd, $1);| dcl_stk|
|00002a10| 2d 3e 6b 69 6e 64 5f 64 | 63 6c 20 3d 20 49 73 54 |->kind_d|cl = IsT|
|00002a20| 79 70 65 64 65 66 3b 7d | 0d 20 20 20 7c 20 45 78 |ypedef;}|. | Ex|
|00002a30| 74 65 72 6e 20 20 20 7b | 24 24 20 3d 20 6e 6f 64 |tern {|$$ = nod|
|00002a40| 65 30 28 50 72 69 6d 72 | 79 4e 64 2c 20 24 31 29 |e0(Primr|yNd, $1)|
|00002a50| 3b 7d 0d 20 20 20 7c 20 | 53 74 61 74 69 63 20 20 |;}. | |Static |
|00002a60| 20 7b 24 24 20 3d 20 6e | 6f 64 65 30 28 50 72 69 | {$$ = n|ode0(Pri|
|00002a70| 6d 72 79 4e 64 2c 20 24 | 31 29 3b 7d 0d 20 20 20 |mryNd, $|1);}. |
|00002a80| 7c 20 41 75 74 6f 20 20 | 20 20 20 7b 24 24 20 3d || Auto | {$$ =|
|00002a90| 20 6e 6f 64 65 30 28 50 | 72 69 6d 72 79 4e 64 2c | node0(P|rimryNd,|
|00002aa0| 20 24 31 29 3b 7d 0d 20 | 20 20 7c 20 52 65 67 69 | $1);}. | | Regi|
|00002ab0| 73 74 65 72 20 7b 24 24 | 20 3d 20 6e 6f 64 65 30 |ster {$$| = node0|
|00002ac0| 28 50 72 69 6d 72 79 4e | 64 2c 20 24 31 29 3b 7d |(PrimryN|d, $1);}|
|00002ad0| 0d 20 20 20 3b 0d 0d 74 | 79 70 65 5f 73 70 65 63 |. ;..t|ype_spec|
|00002ae0| 0d 20 20 20 3a 20 73 74 | 6e 64 5f 74 79 70 65 0d |. : st|nd_type.|
|00002af0| 20 20 20 7c 20 74 79 70 | 65 64 65 66 6e 61 6d 65 | | typ|edefname|
|00002b00| 20 7b 24 24 20 3d 20 6e | 6f 64 65 30 28 50 72 69 | {$$ = n|ode0(Pri|
|00002b10| 6d 72 79 4e 64 2c 20 24 | 31 29 3b 7d 0d 20 20 20 |mryNd, $|1);}. |
|00002b20| 3b 0d 0d 73 74 6e 64 5f | 74 79 70 65 0d 20 20 20 |;..stnd_|type. |
|00002b30| 3a 20 56 6f 69 64 20 20 | 20 20 20 20 20 20 20 20 |: Void | |
|00002b40| 20 20 20 20 20 20 7b 24 | 24 20 3d 20 6e 6f 64 65 | {$|$ = node|
|00002b50| 30 28 50 72 69 6d 72 79 | 4e 64 2c 20 24 31 29 3b |0(Primry|Nd, $1);|
|00002b60| 7d 0d 20 20 20 7c 20 43 | 68 61 72 20 20 20 20 20 |}. | C|har |
|00002b70| 20 20 20 20 20 20 20 20 | 20 20 20 7b 24 24 20 3d | | {$$ =|
|00002b80| 20 6e 6f 64 65 30 28 50 | 72 69 6d 72 79 4e 64 2c | node0(P|rimryNd,|
|00002b90| 20 24 31 29 3b 7d 0d 20 | 20 20 7c 20 53 68 6f 72 | $1);}. | | Shor|
|00002ba0| 74 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |t | |
|00002bb0| 7b 24 24 20 3d 20 6e 6f | 64 65 30 28 50 72 69 6d |{$$ = no|de0(Prim|
|00002bc0| 72 79 4e 64 2c 20 24 31 | 29 3b 7d 0d 20 20 20 7c |ryNd, $1|);}. ||
|00002bd0| 20 49 6e 74 20 20 20 20 | 20 20 20 20 20 20 20 20 | Int | |
|00002be0| 20 20 20 20 20 7b 24 24 | 20 3d 20 6e 6f 64 65 30 | {$$| = node0|
|00002bf0| 28 50 72 69 6d 72 79 4e | 64 2c 20 24 31 29 3b 7d |(PrimryN|d, $1);}|
|00002c00| 0d 20 20 20 7c 20 4c 6f | 6e 67 20 20 20 20 20 20 |. | Lo|ng |
|00002c10| 20 20 20 20 20 20 20 20 | 20 20 7b 24 24 20 3d 20 | | {$$ = |
|00002c20| 6e 6f 64 65 30 28 50 72 | 69 6d 72 79 4e 64 2c 20 |node0(Pr|imryNd, |
|00002c30| 24 31 29 3b 7d 0d 20 20 | 20 7c 20 46 6c 6f 61 74 |$1);}. | | Float|
|00002c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | | {|
|00002c50| 24 24 20 3d 20 6e 6f 64 | 65 30 28 50 72 69 6d 72 |$$ = nod|e0(Primr|
|00002c60| 79 4e 64 2c 20 24 31 29 | 3b 7d 0d 20 20 20 7c 20 |yNd, $1)|;}. | |
|00002c70| 44 6f 75 62 6c 20 20 20 | 20 20 20 20 20 20 20 20 |Doubl | |
|00002c80| 20 20 20 20 7b 24 24 20 | 3d 20 6e 6f 64 65 30 28 | {$$ |= node0(|
|00002c90| 50 72 69 6d 72 79 4e 64 | 2c 20 24 31 29 3b 7d 0d |PrimryNd|, $1);}.|
|00002ca0| 20 20 20 7c 20 53 69 67 | 6e 65 64 20 20 20 20 20 | | Sig|ned |
|00002cb0| 20 20 20 20 20 20 20 20 | 20 7b 24 24 20 3d 20 6e | | {$$ = n|
|00002cc0| 6f 64 65 30 28 50 72 69 | 6d 72 79 4e 64 2c 20 24 |ode0(Pri|mryNd, $|
|00002cd0| 31 29 3b 7d 0d 20 20 20 | 7c 20 55 6e 73 69 67 6e |1);}. || Unsign|
|00002ce0| 65 64 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 24 |ed | {$|
|00002cf0| 24 20 3d 20 6e 6f 64 65 | 30 28 50 72 69 6d 72 79 |$ = node|0(Primry|
|00002d00| 4e 64 2c 20 24 31 29 3b | 7d 0d 20 20 20 7c 20 73 |Nd, $1);|}. | s|
|00002d10| 74 72 75 63 74 5f 6f 72 | 5f 75 6e 69 6f 6e 5f 73 |truct_or|_union_s|
|00002d20| 70 65 63 0d 20 20 20 7c | 20 65 6e 75 6d 5f 73 70 |pec. || enum_sp|
|00002d30| 65 63 0d 20 20 20 3b 0d | 0d 73 74 72 75 63 74 5f |ec. ;.|.struct_|
|00002d40| 6f 72 5f 75 6e 69 6f 6e | 5f 73 70 65 63 0d 20 20 |or_union|_spec. |
|00002d50| 20 3a 20 73 74 72 75 63 | 74 5f 6f 72 5f 75 6e 69 | : struc|t_or_uni|
|00002d60| 6f 6e 20 61 6e 79 5f 69 | 64 65 6e 74 20 27 7b 27 |on any_i|dent '{'|
|00002d70| 20 73 74 72 75 63 74 5f | 64 63 6c 74 69 6f 6e 5f | struct_|dcltion_|
|00002d80| 6c 73 74 20 27 7d 27 0d | 20 20 20 20 20 20 20 20 |lst '}'.| |
|00002d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002db0| 20 20 20 20 7b 24 24 20 | 3d 20 6e 6f 64 65 32 28 | {$$ |= node2(|
|00002dc0| 42 69 6e 72 79 4e 64 2c | 20 24 31 2c 20 24 32 2c |BinryNd,| $1, $2,|
|00002dd0| 20 24 34 29 3b 0d 20 20 | 20 20 20 20 20 20 20 20 | $4);. | |
|00002de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e00| 20 20 20 66 72 65 65 5f | 74 28 24 33 29 3b 20 66 | free_|t($3); f|
|00002e10| 72 65 65 5f 74 28 24 35 | 29 3b 7d 0d 20 20 20 7c |ree_t($5|);}. ||
|00002e20| 20 73 74 72 75 63 74 5f | 6f 72 5f 75 6e 69 6f 6e | struct_|or_union|
|00002e30| 20 27 7b 27 20 73 74 72 | 75 63 74 5f 64 63 6c 74 | '{' str|uct_dclt|
|00002e40| 69 6f 6e 5f 6c 73 74 20 | 27 7d 27 0d 20 20 20 20 |ion_lst |'}'. |
|00002e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e70| 20 20 20 20 20 20 20 20 | 7b 24 24 20 3d 20 6e 6f | |{$$ = no|
|00002e80| 64 65 32 28 42 69 6e 72 | 79 4e 64 2c 20 24 31 2c |de2(Binr|yNd, $1,|
|00002e90| 20 4e 55 4c 4c 2c 20 24 | 33 29 3b 0d 20 20 20 20 | NULL, $|3);. |
|00002ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ec0| 20 20 20 20 20 20 20 20 | 20 66 72 65 65 5f 74 28 | | free_t(|
|00002ed0| 24 32 29 3b 20 66 72 65 | 65 5f 74 28 24 34 29 3b |$2); fre|e_t($4);|
|00002ee0| 7d 0d 20 20 20 7c 20 73 | 74 72 75 63 74 5f 6f 72 |}. | s|truct_or|
|00002ef0| 5f 75 6e 69 6f 6e 20 61 | 6e 79 5f 69 64 65 6e 74 |_union a|ny_ident|
|00002f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 24 | | {$|
|00002f10| 24 20 3d 20 6e 6f 64 65 | 32 28 42 69 6e 72 79 4e |$ = node|2(BinryN|
|00002f20| 64 2c 20 24 31 2c 20 24 | 32 2c 20 4e 55 4c 4c 29 |d, $1, $|2, NULL)|
|00002f30| 3b 7d 0d 20 20 20 3b 0d | 0d 73 74 72 75 63 74 5f |;}. ;.|.struct_|
|00002f40| 6f 72 5f 75 6e 69 6f 6e | 0d 20 20 20 3a 20 53 74 |or_union|. : St|
|00002f50| 72 75 63 74 0d 20 20 20 | 7c 20 55 6e 69 6f 6e 0d |ruct. || Union.|
|00002f60| 20 20 20 3b 0d 0d 73 74 | 72 75 63 74 5f 64 63 6c | ;..st|ruct_dcl|
|00002f70| 74 69 6f 6e 5f 6c 73 74 | 0d 20 20 20 3a 20 73 74 |tion_lst|. : st|
|00002f80| 72 75 63 74 5f 64 63 6c | 74 69 6f 6e 0d 20 20 20 |ruct_dcl|tion. |
|00002f90| 7c 20 73 74 72 75 63 74 | 5f 64 63 6c 74 69 6f 6e || struct|_dcltion|
|00002fa0| 5f 6c 73 74 20 73 74 72 | 75 63 74 5f 64 63 6c 74 |_lst str|uct_dclt|
|00002fb0| 69 6f 6e 20 7b 24 24 20 | 3d 20 6e 6f 64 65 32 28 |ion {$$ |= node2(|
|00002fc0| 4c 73 74 4e 64 2c 20 4e | 55 4c 4c 2c 20 24 31 2c |LstNd, N|ULL, $1,|
|00002fd0| 20 24 32 29 3b 7d 0d 20 | 20 20 3b 0d 0d 73 74 72 | $2);}. | ;..str|
|00002fe0| 75 63 74 5f 64 63 6c 74 | 69 6f 6e 0d 20 20 20 3a |uct_dclt|ion. :|
|00002ff0| 20 73 74 72 75 63 74 5f | 64 63 6c 74 69 6f 6e 5f | struct_|dcltion_|
|00003000| 73 70 65 63 73 20 73 74 | 72 75 63 74 5f 64 63 6c |specs st|ruct_dcl|
|00003010| 74 6f 72 5f 6c 73 74 20 | 27 3b 27 0d 20 20 20 20 |tor_lst |';'. |
|00003020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003040| 20 20 20 20 20 20 20 20 | 20 20 7b 24 24 20 3d 20 | | {$$ = |
|00003050| 6e 6f 64 65 32 28 42 69 | 6e 72 79 4e 64 2c 20 24 |node2(Bi|nryNd, $|
|00003060| 33 2c 20 24 31 2c 20 24 | 32 29 3b 7d 0d 20 20 20 |3, $1, $|2);}. |
|00003070| 7c 20 74 71 75 61 6c 5f | 6c 73 74 20 73 74 72 75 || tqual_|lst stru|
|00003080| 63 74 5f 6e 6f 5f 74 64 | 6e 5f 64 63 6c 74 6f 72 |ct_no_td|n_dcltor|
|00003090| 5f 6c 73 74 20 27 3b 27 | 20 20 20 7b 24 24 20 3d |_lst ';'| {$$ =|
|000030a0| 20 6e 6f 64 65 32 28 42 | 69 6e 72 79 4e 64 2c 20 | node2(B|inryNd, |
|000030b0| 24 33 2c 20 24 31 2c 20 | 24 32 29 3b 7d 0d 20 20 |$3, $1, |$2);}. |
|000030c0| 20 3b 0d 0d 73 74 72 75 | 63 74 5f 64 63 6c 74 69 | ;..stru|ct_dclti|
|000030d0| 6f 6e 5f 73 70 65 63 73 | 0d 20 20 20 3a 20 20 20 |on_specs|. : |
|000030e0| 20 20 20 20 20 20 20 20 | 73 74 72 75 63 74 5f 74 | |struct_t|
|000030f0| 79 70 65 5f 69 6e 64 0d | 20 20 20 7c 20 74 71 75 |ype_ind.| | tqu|
|00003100| 61 6c 5f 6c 73 74 20 73 | 74 72 75 63 74 5f 74 79 |al_lst s|truct_ty|
|00003110| 70 65 5f 69 6e 64 20 20 | 7b 24 24 20 3d 20 6e 6f |pe_ind |{$$ = no|
|00003120| 64 65 32 28 4c 73 74 4e | 64 2c 20 4e 55 4c 4c 2c |de2(LstN|d, NULL,|
|00003130| 20 24 31 2c 20 24 32 29 | 3b 7d 0d 20 20 20 3b 0d | $1, $2)|;}. ;.|
|00003140| 0d 73 74 72 75 63 74 5f | 74 79 70 65 5f 69 6e 64 |.struct_|type_ind|
|00003150| 0d 20 20 20 3a 20 74 79 | 70 65 64 65 66 6e 61 6d |. : ty|pedefnam|
|00003160| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 24 24 |e | {$$|
|00003170| 20 3d 20 6e 6f 64 65 30 | 28 50 72 69 6d 72 79 4e | = node0|(PrimryN|
|00003180| 64 2c 20 24 31 29 3b 7d | 0d 20 20 20 7c 20 74 79 |d, $1);}|. | ty|
|00003190| 70 65 64 65 66 6e 61 6d | 65 20 74 71 75 61 6c 5f |pedefnam|e tqual_|
|000031a0| 6c 73 74 20 20 7b 24 24 | 20 3d 20 6e 6f 64 65 32 |lst {$$| = node2|
|000031b0| 28 4c 73 74 4e 64 2c 20 | 4e 55 4c 4c 2c 20 6e 6f |(LstNd, |NULL, no|
|000031c0| 64 65 30 28 50 72 69 6d | 72 79 4e 64 2c 20 24 31 |de0(Prim|ryNd, $1|
|000031d0| 29 2c 20 24 32 29 3b 7d | 0d 20 20 20 7c 20 73 74 |), $2);}|. | st|
|000031e0| 72 75 63 74 5f 74 79 70 | 65 5f 6c 73 74 0d 20 20 |ruct_typ|e_lst. |
|000031f0| 20 3b 0d 0d 73 74 72 75 | 63 74 5f 74 79 70 65 5f | ;..stru|ct_type_|
|00003200| 6c 73 74 0d 20 20 20 3a | 20 73 74 6e 64 5f 74 79 |lst. :| stnd_ty|
|00003210| 70 65 0d 20 20 20 7c 20 | 73 74 72 75 63 74 5f 74 |pe. | |struct_t|
|00003220| 79 70 65 5f 6c 73 74 20 | 73 74 6e 64 5f 74 79 70 |ype_lst |stnd_typ|
|00003230| 65 20 7b 24 24 20 3d 20 | 6e 6f 64 65 32 28 4c 73 |e {$$ = |node2(Ls|
|00003240| 74 4e 64 2c 20 4e 55 4c | 4c 2c 20 24 31 2c 20 24 |tNd, NUL|L, $1, $|
|00003250| 32 29 3b 7d 0d 20 20 20 | 7c 20 73 74 72 75 63 74 |2);}. || struct|
|00003260| 5f 74 79 70 65 5f 6c 73 | 74 20 74 79 70 65 5f 71 |_type_ls|t type_q|
|00003270| 75 61 6c 20 7b 24 24 20 | 3d 20 6e 6f 64 65 32 28 |ual {$$ |= node2(|
|00003280| 4c 73 74 4e 64 2c 20 4e | 55 4c 4c 2c 20 24 31 2c |LstNd, N|ULL, $1,|
|00003290| 20 24 32 29 3b 7d 20 3b | 0d 0d 73 74 72 75 63 74 | $2);} ;|..struct|
|000032a0| 5f 64 63 6c 74 6f 72 5f | 6c 73 74 0d 20 20 20 3a |_dcltor_|lst. :|
|000032b0| 20 73 74 72 75 63 74 5f | 64 63 6c 74 6f 72 0d 20 | struct_|dcltor. |
|000032c0| 20 20 7c 20 73 74 72 75 | 63 74 5f 64 63 6c 74 6f | | stru|ct_dclto|
|000032d0| 72 5f 6c 73 74 20 27 2c | 27 20 73 74 72 75 63 74 |r_lst ',|' struct|
|000032e0| 5f 64 63 6c 74 6f 72 20 | 7b 24 24 20 3d 20 6e 6f |_dcltor |{$$ = no|
|000032f0| 64 65 32 28 43 6f 6d 6d | 61 4e 64 2c 20 24 32 2c |de2(Comm|aNd, $2,|
|00003300| 20 24 31 2c 20 24 33 29 | 3b 7d 0d 20 20 20 3b 0d | $1, $3)|;}. ;.|
|00003310| 0d 73 74 72 75 63 74 5f | 64 63 6c 74 6f 72 0d 20 |.struct_|dcltor. |
|00003320| 20 20 3a 20 64 63 6c 74 | 6f 72 20 20 20 20 20 20 | : dclt|or |
|00003330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 24 24 | | {$$|
|00003340| 20 3d 20 6e 6f 64 65 32 | 28 53 74 72 44 63 6c 4e | = node2|(StrDclN|
|00003350| 64 2c 20 4e 55 4c 4c 2c | 20 24 31 2c 20 4e 55 4c |d, NULL,| $1, NUL|
|00003360| 4c 29 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |L);. | |
|00003370| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003380| 20 20 20 69 66 20 28 64 | 63 6c 5f 73 74 6b 2d 3e | if (d|cl_stk->|
|00003390| 70 61 72 6d 73 5f 64 6f | 6e 65 29 20 70 6f 70 5f |parms_do|ne) pop_|
|000033a0| 63 6e 74 78 74 28 29 3b | 7d 0d 20 20 20 7c 20 20 |cntxt();|}. | |
|000033b0| 20 20 20 20 20 20 27 3a | 27 20 63 6f 6e 73 74 61 | ':|' consta|
|000033c0| 6e 74 5f 65 78 70 72 20 | 7b 24 24 20 3d 20 6e 6f |nt_expr |{$$ = no|
|000033d0| 64 65 32 28 53 74 72 44 | 63 6c 4e 64 2c 20 24 31 |de2(StrD|clNd, $1|
|000033e0| 2c 20 4e 55 4c 4c 2c 20 | 24 32 29 3b 7d 0d 20 20 |, NULL, |$2);}. |
|000033f0| 20 7c 20 64 63 6c 74 6f | 72 20 27 3a 27 20 7b 69 | | dclto|r ':' {i|
|00003400| 66 20 28 64 63 6c 5f 73 | 74 6b 2d 3e 70 61 72 6d |f (dcl_s|tk->parm|
|00003410| 73 5f 64 6f 6e 65 29 20 | 70 6f 70 5f 63 6e 74 78 |s_done) |pop_cntx|
|00003420| 74 28 29 3b 7d 20 63 6f | 6e 73 74 61 6e 74 5f 65 |t();} co|nstant_e|
|00003430| 78 70 72 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |xpr. | |
|00003440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003450| 20 20 7b 24 24 20 3d 20 | 6e 6f 64 65 32 28 53 74 | {$$ = |node2(St|
|00003460| 72 44 63 6c 4e 64 2c 20 | 24 32 2c 20 24 31 2c 20 |rDclNd, |$2, $1, |
|00003470| 24 34 29 3b 7d 0d 20 20 | 20 3b 0d 0d 73 74 72 75 |$4);}. | ;..stru|
|00003480| 63 74 5f 6e 6f 5f 74 64 | 6e 5f 64 63 6c 74 6f 72 |ct_no_td|n_dcltor|
|00003490| 5f 6c 73 74 0d 20 20 20 | 3a 20 73 74 72 75 63 74 |_lst. |: struct|
|000034a0| 5f 6e 6f 5f 74 64 6e 5f | 64 63 6c 74 6f 72 0d 20 |_no_tdn_|dcltor. |
|000034b0| 20 20 7c 20 73 74 72 75 | 63 74 5f 6e 6f 5f 74 64 | | stru|ct_no_td|
|000034c0| 6e 5f 64 63 6c 74 6f 72 | 5f 6c 73 74 20 27 2c 27 |n_dcltor|_lst ','|
|000034d0| 20 73 74 72 75 63 74 5f | 6e 6f 5f 74 64 6e 5f 64 | struct_|no_tdn_d|
|000034e0| 63 6c 74 6f 72 0d 20 20 | 20 20 20 20 20 20 20 20 |cltor. | |
|000034f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003510| 20 20 20 20 7b 24 24 20 | 3d 20 6e 6f 64 65 32 28 | {$$ |= node2(|
|00003520| 43 6f 6d 6d 61 4e 64 2c | 20 24 32 2c 20 24 31 2c |CommaNd,| $2, $1,|
|00003530| 20 24 33 29 3b 7d 0d 20 | 20 20 3b 0d 0d 73 74 72 | $3);}. | ;..str|
|00003540| 75 63 74 5f 6e 6f 5f 74 | 64 6e 5f 64 63 6c 74 6f |uct_no_t|dn_dclto|
|00003550| 72 0d 20 20 20 3a 20 6e | 6f 5f 74 64 6e 5f 64 63 |r. : n|o_tdn_dc|
|00003560| 6c 74 6f 72 20 20 20 20 | 20 20 20 20 20 20 20 20 |ltor | |
|00003570| 20 20 20 20 20 20 20 7b | 24 24 20 3d 20 6e 6f 64 | {|$$ = nod|
|00003580| 65 32 28 53 74 72 44 63 | 6c 4e 64 2c 20 4e 55 4c |e2(StrDc|lNd, NUL|
|00003590| 4c 2c 20 24 31 2c 20 4e | 55 4c 4c 29 3b 0d 20 20 |L, $1, N|ULL);. |
|000035a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000035b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000035c0| 20 20 20 20 69 66 20 28 | 64 63 6c 5f 73 74 6b 2d | if (|dcl_stk-|
|000035d0| 3e 70 61 72 6d 73 5f 64 | 6f 6e 65 29 20 70 6f 70 |>parms_d|one) pop|
|000035e0| 5f 63 6e 74 78 74 28 29 | 3b 7d 0d 20 20 20 7c 20 |_cntxt()|;}. | |
|000035f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 27 3a | | ':|
|00003600| 27 20 63 6f 6e 73 74 61 | 6e 74 5f 65 78 70 72 20 |' consta|nt_expr |
|00003610| 7b 24 24 20 3d 20 6e 6f | 64 65 32 28 53 74 72 44 |{$$ = no|de2(StrD|
|00003620| 63 6c 4e 64 2c 20 24 31 | 2c 20 4e 55 4c 4c 2c 20 |clNd, $1|, NULL, |
|00003630| 24 32 29 3b 7d 0d 20 20 | 20 7c 20 6e 6f 5f 74 64 |$2);}. | | no_td|
|00003640| 6e 5f 64 63 6c 74 6f 72 | 20 27 3a 27 20 7b 69 66 |n_dcltor| ':' {if|
|00003650| 20 28 64 63 6c 5f 73 74 | 6b 2d 3e 70 61 72 6d 73 | (dcl_st|k->parms|
|00003660| 5f 64 6f 6e 65 29 20 70 | 6f 70 5f 63 6e 74 78 74 |_done) p|op_cntxt|
|00003670| 28 29 3b 7d 20 63 6f 6e | 73 74 61 6e 74 5f 65 78 |();} con|stant_ex|
|00003680| 70 72 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |pr. | |
|00003690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000036a0| 20 20 20 20 20 20 20 20 | 7b 24 24 20 3d 20 6e 6f | |{$$ = no|
|000036b0| 64 65 32 28 53 74 72 44 | 63 6c 4e 64 2c 20 24 32 |de2(StrD|clNd, $2|
|000036c0| 2c 20 24 31 2c 20 24 34 | 29 3b 7d 0d 20 20 20 3b |, $1, $4|);}. ;|
|000036d0| 0d 0d 65 6e 75 6d 5f 73 | 70 65 63 0d 20 20 20 3a |..enum_s|pec. :|
|000036e0| 20 45 6e 75 6d 20 7b 70 | 75 73 68 5f 63 6e 74 78 | Enum {p|ush_cntx|
|000036f0| 74 28 30 29 3b 7d 20 27 | 7b 27 20 65 6e 75 6d 65 |t(0);} '|{' enume|
|00003700| 72 61 74 6f 72 5f 6c 73 | 74 20 27 7d 27 0d 20 20 |rator_ls|t '}'. |
|00003710| 20 20 20 20 20 7b 24 24 | 20 3d 20 6e 6f 64 65 32 | {$$| = node2|
|00003720| 28 42 69 6e 72 79 4e 64 | 2c 20 24 31 2c 20 4e 55 |(BinryNd|, $1, NU|
|00003730| 4c 4c 2c 20 24 34 29 3b | 20 70 6f 70 5f 63 6e 74 |LL, $4);| pop_cnt|
|00003740| 78 74 28 29 3b 20 66 72 | 65 65 5f 74 28 24 33 29 |xt(); fr|ee_t($3)|
|00003750| 3b 20 66 72 65 65 5f 74 | 28 24 35 29 3b 7d 0d 20 |; free_t|($5);}. |
|00003760| 20 20 7c 20 45 6e 75 6d | 20 61 6e 79 5f 69 64 65 | | Enum| any_ide|
|00003770| 6e 74 20 7b 70 75 73 68 | 5f 63 6e 74 78 74 28 30 |nt {push|_cntxt(0|
|00003780| 29 3b 7d 20 27 7b 27 20 | 65 6e 75 6d 65 72 61 74 |);} '{' |enumerat|
|00003790| 6f 72 5f 6c 73 74 20 27 | 7d 27 0d 20 20 20 20 20 |or_lst '|}'. |
|000037a0| 20 20 7b 24 24 20 3d 20 | 6e 6f 64 65 32 28 42 69 | {$$ = |node2(Bi|
|000037b0| 6e 72 79 4e 64 2c 20 24 | 31 2c 20 24 32 2c 20 20 |nryNd, $|1, $2, |
|000037c0| 24 35 29 3b 20 70 6f 70 | 5f 63 6e 74 78 74 28 29 |$5); pop|_cntxt()|
|000037d0| 3b 20 66 72 65 65 5f 74 | 28 24 34 29 3b 20 66 72 |; free_t|($4); fr|
|000037e0| 65 65 5f 74 28 24 36 29 | 3b 7d 0d 20 20 20 7c 20 |ee_t($6)|;}. | |
|000037f0| 45 6e 75 6d 20 61 6e 79 | 5f 69 64 65 6e 74 20 7b |Enum any|_ident {|
|00003800| 24 24 20 3d 20 6e 6f 64 | 65 32 28 42 69 6e 72 79 |$$ = nod|e2(Binry|
|00003810| 4e 64 2c 20 24 31 2c 20 | 24 32 2c 20 20 4e 55 4c |Nd, $1, |$2, NUL|
|00003820| 4c 29 3b 7d 0d 20 20 20 | 3b 0d 0d 65 6e 75 6d 65 |L);}. |;..enume|
|00003830| 72 61 74 6f 72 5f 6c 73 | 74 0d 20 20 20 3a 20 65 |rator_ls|t. : e|
|00003840| 6e 75 6d 65 72 61 74 6f | 72 0d 20 20 20 7c 20 65 |numerato|r. | e|
|00003850| 6e 75 6d 65 72 61 74 6f | 72 5f 6c 73 74 20 27 2c |numerato|r_lst ',|
|00003860| 27 20 65 6e 75 6d 65 72 | 61 74 6f 72 20 7b 24 24 |' enumer|ator {$$|
|00003870| 20 3d 20 6e 6f 64 65 32 | 28 43 6f 6d 6d 61 4e 64 | = node2|(CommaNd|
|00003880| 2c 20 24 32 2c 20 24 31 | 2c 20 24 33 29 3b 7d 0d |, $2, $1|, $3);}.|
|00003890| 20 20 20 3b 0d 0d 65 6e | 75 6d 65 72 61 74 6f 72 | ;..en|umerator|
|000038a0| 0d 20 20 20 3a 20 61 6e | 79 5f 69 64 65 6e 74 20 |. : an|y_ident |
|000038b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | | {|
|000038c0| 24 24 20 3d 20 24 31 3b | 20 69 64 5f 64 65 66 28 |$$ = $1;| id_def(|
|000038d0| 24 31 2c 20 4e 55 4c 4c | 29 3b 7d 0d 20 20 20 7c |$1, NULL|);}. ||
|000038e0| 20 61 6e 79 5f 69 64 65 | 6e 74 20 27 3d 27 20 63 | any_ide|nt '=' c|
|000038f0| 6f 6e 73 74 61 6e 74 5f | 65 78 70 72 0d 20 20 20 |onstant_|expr. |
|00003900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003910| 20 20 20 20 20 20 20 20 | 20 20 20 7b 24 24 20 3d | | {$$ =|
|00003920| 20 6e 6f 64 65 32 28 42 | 69 6e 72 79 4e 64 2c 20 | node2(B|inryNd, |
|00003930| 24 32 2c 20 24 31 2c 20 | 24 33 29 3b 20 69 64 5f |$2, $1, |$3); id_|
|00003940| 64 65 66 28 24 31 2c 20 | 24 33 29 3b 7d 0d 20 20 |def($1, |$3);}. |
|00003950| 20 3b 0d 0d 74 79 70 65 | 5f 71 75 61 6c 0d 20 20 | ;..type|_qual. |
|00003960| 20 3a 20 43 6f 6e 73 74 | 20 20 20 20 7b 24 24 20 | : Const| {$$ |
|00003970| 3d 20 6e 6f 64 65 30 28 | 50 72 69 6d 72 79 4e 64 |= node0(|PrimryNd|
|00003980| 2c 20 24 31 29 3b 7d 0d | 20 20 20 7c 20 56 6f 6c |, $1);}.| | Vol|
|00003990| 61 74 69 6c 65 20 7b 24 | 24 20 3d 20 6e 6f 64 65 |atile {$|$ = node|
|000039a0| 30 28 50 72 69 6d 72 79 | 4e 64 2c 20 24 31 29 3b |0(Primry|Nd, $1);|
|000039b0| 7d 0d 20 20 20 3b 0d 0d | 0d 64 63 6c 74 6f 72 0d |}. ;..|.dcltor.|
|000039c0| 20 20 20 3a 20 6f 70 74 | 5f 70 6f 69 6e 74 65 72 | : opt|_pointer|
|000039d0| 20 64 69 72 65 63 74 5f | 64 63 6c 74 6f 72 20 20 | direct_|dcltor |
|000039e0| 7b 24 24 20 3d 20 6e 6f | 64 65 32 28 43 6f 6e 43 |{$$ = no|de2(ConC|
|000039f0| 61 74 4e 64 2c 20 4e 55 | 4c 4c 2c 20 24 31 2c 20 |atNd, NU|LL, $1, |
|00003a00| 24 32 29 3b 7d 0d 20 20 | 20 3b 0d 0d 6e 6f 5f 74 |$2);}. | ;..no_t|
|00003a10| 64 6e 5f 64 63 6c 74 6f | 72 0d 20 20 20 3a 20 6f |dn_dclto|r. : o|
|00003a20| 70 74 5f 70 6f 69 6e 74 | 65 72 20 6e 6f 5f 74 64 |pt_point|er no_td|
|00003a30| 6e 5f 64 69 72 65 63 74 | 5f 64 63 6c 74 6f 72 20 |n_direct|_dcltor |
|00003a40| 7b 24 24 20 3d 20 6e 6f | 64 65 32 28 43 6f 6e 43 |{$$ = no|de2(ConC|
|00003a50| 61 74 4e 64 2c 20 4e 55 | 4c 4c 2c 20 24 31 2c 20 |atNd, NU|LL, $1, |
|00003a60| 24 32 29 3b 7d 0d 20 20 | 20 3b 0d 0d 64 69 72 65 |$2);}. | ;..dire|
|00003a70| 63 74 5f 64 63 6c 74 6f | 72 0d 20 20 20 3a 20 61 |ct_dclto|r. : a|
|00003a80| 6e 79 5f 69 64 65 6e 74 | 0d 20 20 20 7c 20 27 28 |ny_ident|. | '(|
|00003a90| 27 20 64 63 6c 74 6f 72 | 20 27 29 27 20 20 20 20 |' dcltor| ')' |
|00003aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003ab0| 20 20 20 20 20 20 20 7b | 24 24 20 3d 20 6e 6f 64 | {|$$ = nod|
|00003ac0| 65 31 28 50 72 65 66 78 | 4e 64 2c 20 24 31 2c 20 |e1(Prefx|Nd, $1, |
|00003ad0| 24 32 29 3b 0d 20 20 20 | 20 20 20 20 20 20 20 20 |$2);. | |
|00003ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003b00| 20 20 20 20 66 72 65 65 | 5f 74 28 24 33 29 3b 7d | free|_t($3);}|
|00003b10| 0d 20 20 20 7c 20 64 69 | 72 65 63 74 5f 64 63 6c |. | di|rect_dcl|
|00003b20| 74 6f 72 20 27 5b 27 20 | 6f 70 74 5f 63 6f 6e 73 |tor '[' |opt_cons|
|00003b30| 74 61 6e 74 5f 65 78 70 | 72 20 20 27 5d 27 20 7b |tant_exp|r ']' {|
|00003b40| 24 24 20 3d 20 6e 6f 64 | 65 32 28 42 69 6e 72 79 |$$ = nod|e2(Binry|
|00003b50| 4e 64 2c 20 24 32 2c 20 | 24 31 2c 20 24 33 29 3b |Nd, $2, |$1, $3);|
|00003b60| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003b90| 66 72 65 65 5f 74 28 24 | 34 29 3b 7d 0d 20 20 20 |free_t($|4);}. |
|00003ba0| 7c 20 64 69 72 65 63 74 | 5f 64 63 6c 74 6f 72 20 || direct|_dcltor |
|00003bb0| 27 28 27 20 7b 70 75 73 | 68 5f 63 6e 74 78 74 28 |'(' {pus|h_cntxt(|
|00003bc0| 31 29 3b 7d 20 70 61 72 | 6d 5f 64 63 6c 73 5f 6f |1);} par|m_dcls_o|
|00003bd0| 72 5f 69 64 73 20 27 29 | 27 0d 20 20 20 20 20 20 |r_ids ')|'. |
|00003be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c00| 20 20 20 20 20 20 20 20 | 7b 24 24 20 3d 20 6e 6f | |{$$ = no|
|00003c10| 64 65 32 28 42 69 6e 72 | 79 4e 64 2c 20 24 35 2c |de2(Binr|yNd, $5,|
|00003c20| 20 24 31 2c 20 24 34 29 | 3b 0d 20 20 20 20 20 20 | $1, $4)|;. |
|00003c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c50| 20 20 20 20 20 20 20 20 | 20 69 66 20 28 64 63 6c | | if (dcl|
|00003c60| 5f 73 74 6b 2d 3e 6e 65 | 73 74 5f 6c 76 6c 20 3d |_stk->ne|st_lvl =|
|00003c70| 3d 20 32 29 0d 20 20 20 | 20 20 20 20 20 20 20 20 |= 2). | |
|00003c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003ca0| 20 20 20 20 20 20 20 64 | 63 6c 5f 73 74 6b 2d 3e | d|cl_stk->|
|00003cb0| 70 61 72 6d 73 5f 64 6f | 6e 65 20 3d 20 31 3b 0d |parms_do|ne = 1;.|
|00003cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003cf0| 65 6c 73 65 0d 20 20 20 | 20 20 20 20 20 20 20 20 |else. | |
|00003d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d20| 20 20 20 20 20 20 20 70 | 6f 70 5f 63 6e 74 78 74 | p|op_cntxt|
|00003d30| 28 29 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |();. | |
|00003d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d60| 20 20 20 66 72 65 65 5f | 74 28 24 32 29 3b 7d 0d | free_|t($2);}.|
|00003d70| 20 20 20 3b 0d 0d 6e 6f | 5f 74 64 6e 5f 64 69 72 | ;..no|_tdn_dir|
|00003d80| 65 63 74 5f 64 63 6c 74 | 6f 72 0d 20 20 20 3a 20 |ect_dclt|or. : |
|00003d90| 69 64 65 6e 74 69 66 69 | 65 72 20 20 20 20 20 20 |identifi|er |
|00003da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003db0| 20 20 20 20 20 20 20 20 | 20 7b 24 24 20 3d 20 6e | | {$$ = n|
|00003dc0| 6f 64 65 30 28 50 72 69 | 6d 72 79 4e 64 2c 20 24 |ode0(Pri|mryNd, $|
|00003dd0| 31 29 3b 7d 0d 20 20 20 | 7c 20 27 28 27 20 6e 6f |1);}. || '(' no|
|00003de0| 5f 74 64 6e 5f 64 63 6c | 74 6f 72 20 27 29 27 20 |_tdn_dcl|tor ')' |
|00003df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e00| 20 20 20 7b 24 24 20 3d | 20 6e 6f 64 65 31 28 50 | {$$ =| node1(P|
|00003e10| 72 65 66 78 4e 64 2c 20 | 24 31 2c 20 24 32 29 3b |refxNd, |$1, $2);|
|00003e20| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003e30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e50| 66 72 65 65 5f 74 28 24 | 33 29 3b 7d 0d 20 20 20 |free_t($|3);}. |
|00003e60| 7c 20 6e 6f 5f 74 64 6e | 5f 64 69 72 65 63 74 5f || no_tdn|_direct_|
|00003e70| 64 63 6c 74 6f 72 20 27 | 5b 27 20 6f 70 74 5f 63 |dcltor '|[' opt_c|
|00003e80| 6f 6e 73 74 61 6e 74 5f | 65 78 70 72 20 20 27 5d |onstant_|expr ']|
|00003e90| 27 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |'. | |
|00003ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003ec0| 7b 24 24 20 3d 20 6e 6f | 64 65 32 28 42 69 6e 72 |{$$ = no|de2(Binr|
|00003ed0| 79 4e 64 2c 20 24 32 2c | 20 24 31 2c 20 24 33 29 |yNd, $2,| $1, $3)|
|00003ee0| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00003ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f10| 20 66 72 65 65 5f 74 28 | 24 34 29 3b 7d 0d 20 20 | free_t(|$4);}. |
|00003f20| 20 7c 20 6e 6f 5f 74 64 | 6e 5f 64 69 72 65 63 74 | | no_td|n_direct|
|00003f30| 5f 64 63 6c 74 6f 72 20 | 27 28 27 20 7b 70 75 73 |_dcltor |'(' {pus|
|00003f40| 68 5f 63 6e 74 78 74 28 | 31 29 3b 7d 20 70 61 72 |h_cntxt(|1);} par|
|00003f50| 6d 5f 64 63 6c 73 5f 6f | 72 5f 69 64 73 20 27 29 |m_dcls_o|r_ids ')|
|00003f60| 27 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |'. | |
|00003f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f90| 7b 24 24 20 3d 20 6e 6f | 64 65 32 28 42 69 6e 72 |{$$ = no|de2(Binr|
|00003fa0| 79 4e 64 2c 20 24 35 2c | 20 24 31 2c 20 24 34 29 |yNd, $5,| $1, $4)|
|00003fb0| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00003fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003fe0| 20 69 66 20 28 64 63 6c | 5f 73 74 6b 2d 3e 6e 65 | if (dcl|_stk->ne|
|00003ff0| 73 74 5f 6c 76 6c 20 3d | 3d 20 32 29 0d 20 20 20 |st_lvl =|= 2). |
|00004000| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004020| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 64 | | d|
|00004030| 63 6c 5f 73 74 6b 2d 3e | 70 61 72 6d 73 5f 64 6f |cl_stk->|parms_do|
|00004040| 6e 65 20 3d 20 31 3b 0d | 20 20 20 20 20 20 20 20 |ne = 1;.| |
|00004050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004070| 20 20 20 20 20 20 20 20 | 65 6c 73 65 0d 20 20 20 | |else. |
|00004080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|000040b0| 6f 70 5f 63 6e 74 78 74 | 28 29 3b 0d 20 20 20 20 |op_cntxt|();. |
|000040c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040e0| 20 20 20 20 20 20 20 20 | 20 20 20 66 72 65 65 5f | | free_|
|000040f0| 74 28 24 32 29 3b 7d 0d | 20 20 20 3b 0d 0d 70 61 |t($2);}.| ;..pa|
|00004100| 72 6d 5f 64 63 6c 73 5f | 6f 72 5f 69 64 73 0d 20 |rm_dcls_|or_ids. |
|00004110| 20 20 3a 20 6f 70 74 5f | 70 61 72 61 6d 5f 74 79 | : opt_|param_ty|
|00004120| 70 65 5f 6c 73 74 0d 20 | 20 20 7c 20 69 64 65 6e |pe_lst. | | iden|
|00004130| 74 5f 6c 73 74 0d 20 20 | 20 3b 0d 0d 70 6f 69 6e |t_lst. | ;..poin|
|00004140| 74 65 72 0d 20 20 20 3a | 20 27 2a 27 20 20 20 20 |ter. :| '*' |
|00004150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | | {|
|00004160| 24 24 20 3d 20 6e 6f 64 | 65 30 28 50 72 69 6d 72 |$$ = nod|e0(Primr|
|00004170| 79 4e 64 2c 20 24 31 29 | 3b 7d 0d 20 20 20 7c 20 |yNd, $1)|;}. | |
|00004180| 27 2a 27 20 74 71 75 61 | 6c 5f 6c 73 74 20 20 20 |'*' tqua|l_lst |
|00004190| 20 20 20 20 20 20 7b 24 | 24 20 3d 20 6e 6f 64 65 | {$|$ = node|
|000041a0| 31 28 50 72 65 53 70 63 | 4e 64 2c 20 24 31 2c 20 |1(PreSpc|Nd, $1, |
|000041b0| 24 32 29 3b 7d 0d 20 20 | 20 7c 20 27 2a 27 20 70 |$2);}. | | '*' p|
|000041c0| 6f 69 6e 74 65 72 20 20 | 20 20 20 20 20 20 20 20 |ointer | |
|000041d0| 20 7b 24 24 20 3d 20 6e | 6f 64 65 31 28 50 72 65 | {$$ = n|ode1(Pre|
|000041e0| 66 78 4e 64 2c 20 24 31 | 2c 20 24 32 29 3b 7d 0d |fxNd, $1|, $2);}.|
|000041f0| 20 20 20 7c 20 27 2a 27 | 20 74 71 75 61 6c 5f 6c | | '*'| tqual_l|
|00004200| 73 74 20 70 6f 69 6e 74 | 65 72 20 7b 24 24 20 3d |st point|er {$$ =|
|00004210| 20 6e 6f 64 65 31 28 50 | 72 65 66 78 4e 64 2c 20 | node1(P|refxNd, |
|00004220| 24 31 2c 20 6e 6f 64 65 | 32 28 4c 73 74 4e 64 2c |$1, node|2(LstNd,|
|00004230| 20 4e 55 4c 4c 2c 20 24 | 32 2c 24 33 29 29 3b 7d | NULL, $|2,$3));}|
|00004240| 0d 20 20 20 3b 0d 0d 6f | 70 74 5f 70 6f 69 6e 74 |. ;..o|pt_point|
|00004250| 65 72 0d 20 20 20 3a 20 | 7b 24 24 20 3d 20 4e 55 |er. : |{$$ = NU|
|00004260| 4c 4c 3b 7d 0d 20 20 20 | 7c 20 70 6f 69 6e 74 65 |LL;}. || pointe|
|00004270| 72 0d 20 20 20 3b 0d 0d | 74 71 75 61 6c 5f 6c 73 |r. ;..|tqual_ls|
|00004280| 74 0d 20 20 20 3a 20 74 | 79 70 65 5f 71 75 61 6c |t. : t|ype_qual|
|00004290| 0d 20 20 20 7c 20 74 71 | 75 61 6c 5f 6c 73 74 20 |. | tq|ual_lst |
|000042a0| 74 79 70 65 5f 71 75 61 | 6c 20 7b 24 24 20 3d 20 |type_qua|l {$$ = |
|000042b0| 6e 6f 64 65 32 28 4c 73 | 74 4e 64 2c 20 4e 55 4c |node2(Ls|tNd, NUL|
|000042c0| 4c 2c 20 24 31 2c 20 24 | 32 29 3b 7d 0d 20 20 20 |L, $1, $|2);}. |
|000042d0| 3b 0d 0d 70 61 72 61 6d | 5f 74 79 70 65 5f 6c 73 |;..param|_type_ls|
|000042e0| 74 0d 20 20 20 3a 20 70 | 61 72 61 6d 5f 6c 73 74 |t. : p|aram_lst|
|000042f0| 20 0d 20 20 20 7c 20 70 | 61 72 61 6d 5f 6c 73 74 | . | p|aram_lst|
|00004300| 20 27 2c 27 20 45 6c 6c | 69 70 73 69 73 20 7b 24 | ',' Ell|ipsis {$|
|00004310| 24 20 3d 20 6e 6f 64 65 | 32 28 43 6f 6d 6d 61 4e |$ = node|2(CommaN|
|00004320| 64 2c 20 24 32 2c 20 24 | 31 2c 20 6e 6f 64 65 30 |d, $2, $|1, node0|
|00004330| 28 50 72 69 6d 72 79 4e | 64 2c 20 24 33 29 29 3b |(PrimryN|d, $3));|
|00004340| 7d 0d 20 20 20 3b 0d 0d | 6f 70 74 5f 70 61 72 61 |}. ;..|opt_para|
|00004350| 6d 5f 74 79 70 65 5f 6c | 73 74 0d 20 20 20 3a 20 |m_type_l|st. : |
|00004360| 7b 24 24 20 3d 20 4e 55 | 4c 4c 3b 7d 0d 20 20 20 |{$$ = NU|LL;}. |
|00004370| 7c 20 70 61 72 61 6d 5f | 74 79 70 65 5f 6c 73 74 || param_|type_lst|
|00004380| 0d 20 20 20 3b 0d 0d 70 | 61 72 61 6d 5f 6c 73 74 |. ;..p|aram_lst|
|00004390| 0d 20 20 20 3a 20 70 61 | 72 61 6d 5f 64 63 6c 74 |. : pa|ram_dclt|
|000043a0| 69 6f 6e 0d 20 20 20 7c | 20 70 61 72 61 6d 5f 6c |ion. || param_l|
|000043b0| 73 74 20 27 2c 27 20 70 | 61 72 61 6d 5f 64 63 6c |st ',' p|aram_dcl|
|000043c0| 74 69 6f 6e 20 7b 24 24 | 20 3d 20 6e 6f 64 65 32 |tion {$$| = node2|
|000043d0| 28 43 6f 6d 6d 61 4e 64 | 2c 20 24 32 2c 20 24 31 |(CommaNd|, $2, $1|
|000043e0| 2c 20 24 33 29 3b 7d 0d | 20 20 20 3b 0d 0d 70 61 |, $3);}.| ;..pa|
|000043f0| 72 61 6d 5f 64 63 6c 74 | 69 6f 6e 0d 20 20 20 3a |ram_dclt|ion. :|
|00004400| 20 64 63 6c 74 69 6f 6e | 5f 73 70 65 63 73 20 6e | dcltion|_specs n|
|00004410| 6f 5f 74 64 6e 5f 64 63 | 6c 74 6f 72 20 20 20 7b |o_tdn_dc|ltor {|
|00004420| 24 24 20 3d 20 6e 6f 64 | 65 32 28 4c 73 74 4e 64 |$$ = nod|e2(LstNd|
|00004430| 2c 20 4e 55 4c 4c 2c 20 | 24 31 2c 20 24 32 29 3b |, NULL, |$1, $2);|
|00004440| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00004450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004460| 20 20 20 20 20 69 64 5f | 64 65 66 28 24 32 2c 20 | id_|def($2, |
|00004470| 4e 55 4c 4c 29 3b 7d 0d | 20 20 20 7c 20 64 63 6c |NULL);}.| | dcl|
|00004480| 74 69 6f 6e 5f 73 70 65 | 63 73 0d 20 20 20 7c 20 |tion_spe|cs. | |
|00004490| 64 63 6c 74 69 6f 6e 5f | 73 70 65 63 73 20 61 62 |dcltion_|specs ab|
|000044a0| 73 74 72 61 63 74 5f 64 | 63 6c 74 6f 72 20 7b 24 |stract_d|cltor {$|
|000044b0| 24 20 3d 20 6e 6f 64 65 | 32 28 4c 73 74 4e 64 2c |$ = node|2(LstNd,|
|000044c0| 20 4e 55 4c 4c 2c 20 24 | 31 2c 20 24 32 29 3b 7d | NULL, $|1, $2);}|
|000044d0| 0d 20 20 20 3b 0d 0d 69 | 64 65 6e 74 5f 6c 73 74 |. ;..i|dent_lst|
|000044e0| 0d 20 20 20 3a 20 69 64 | 65 6e 74 69 66 69 65 72 |. : id|entifier|
|000044f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | | {|
|00004500| 24 24 20 3d 20 6e 6f 64 | 65 30 28 50 72 69 6d 72 |$$ = nod|e0(Primr|
|00004510| 79 4e 64 2c 20 24 31 29 | 3b 7d 0d 20 20 20 7c 20 |yNd, $1)|;}. | |
|00004520| 69 64 65 6e 74 5f 6c 73 | 74 20 27 2c 27 20 69 64 |ident_ls|t ',' id|
|00004530| 65 6e 74 69 66 69 65 72 | 20 7b 24 24 20 3d 20 6e |entifier| {$$ = n|
|00004540| 6f 64 65 32 28 43 6f 6d | 6d 61 4e 64 2c 20 24 32 |ode2(Com|maNd, $2|
|00004550| 2c 20 24 31 2c 20 6e 6f | 64 65 30 28 50 72 69 6d |, $1, no|de0(Prim|
|00004560| 72 79 4e 64 2c 24 33 29 | 29 3b 7d 0d 20 20 20 3b |ryNd,$3)|);}. ;|
|00004570| 0d 0d 74 79 70 65 5f 74 | 71 75 61 6c 5f 6c 73 74 |..type_t|qual_lst|
|00004580| 0d 20 20 20 3a 20 74 79 | 70 65 5f 73 70 65 63 0d |. : ty|pe_spec.|
|00004590| 20 20 20 7c 20 74 79 70 | 65 5f 71 75 61 6c 0d 20 | | typ|e_qual. |
|000045a0| 20 20 7c 20 74 79 70 65 | 5f 73 70 65 63 20 74 79 | | type|_spec ty|
|000045b0| 70 65 5f 74 71 75 61 6c | 5f 6c 73 74 20 7b 24 24 |pe_tqual|_lst {$$|
|000045c0| 20 3d 20 6e 6f 64 65 32 | 28 4c 73 74 4e 64 2c 20 | = node2|(LstNd, |
|000045d0| 4e 55 4c 4c 2c 20 24 31 | 2c 20 24 32 29 3b 7d 0d |NULL, $1|, $2);}.|
|000045e0| 20 20 20 7c 20 74 79 70 | 65 5f 71 75 61 6c 20 74 | | typ|e_qual t|
|000045f0| 79 70 65 5f 74 71 75 61 | 6c 5f 6c 73 74 20 7b 24 |ype_tqua|l_lst {$|
|00004600| 24 20 3d 20 6e 6f 64 65 | 32 28 4c 73 74 4e 64 2c |$ = node|2(LstNd,|
|00004610| 20 4e 55 4c 4c 2c 20 24 | 31 2c 20 24 32 29 3b 7d | NULL, $|1, $2);}|
|00004620| 0d 20 20 20 3b 0d 0d 74 | 79 70 65 5f 6e 61 6d 65 |. ;..t|ype_name|
|00004630| 0d 20 20 20 3a 20 74 79 | 70 65 5f 74 71 75 61 6c |. : ty|pe_tqual|
|00004640| 5f 6c 73 74 0d 20 20 20 | 7c 20 74 79 70 65 5f 74 |_lst. || type_t|
|00004650| 71 75 61 6c 5f 6c 73 74 | 20 61 62 73 74 72 61 63 |qual_lst| abstrac|
|00004660| 74 5f 64 63 6c 74 6f 72 | 20 7b 24 24 20 3d 20 6e |t_dcltor| {$$ = n|
|00004670| 6f 64 65 32 28 4c 73 74 | 4e 64 2c 20 4e 55 4c 4c |ode2(Lst|Nd, NULL|
|00004680| 2c 20 24 31 2c 20 24 32 | 29 3b 7d 0d 20 20 20 3b |, $1, $2|);}. ;|
|00004690| 0d 0d 61 62 73 74 72 61 | 63 74 5f 64 63 6c 74 6f |..abstra|ct_dclto|
|000046a0| 72 0d 20 20 20 3a 20 70 | 6f 69 6e 74 65 72 0d 20 |r. : p|ointer. |
|000046b0| 20 20 7c 20 6f 70 74 5f | 70 6f 69 6e 74 65 72 20 | | opt_|pointer |
|000046c0| 64 69 72 65 63 74 5f 61 | 62 73 74 72 61 63 74 5f |direct_a|bstract_|
|000046d0| 64 63 6c 74 6f 72 20 7b | 24 24 20 3d 20 6e 6f 64 |dcltor {|$$ = nod|
|000046e0| 65 32 28 43 6f 6e 43 61 | 74 4e 64 2c 20 4e 55 4c |e2(ConCa|tNd, NUL|
|000046f0| 4c 2c 20 24 31 2c 20 24 | 32 29 3b 7d 0d 20 20 20 |L, $1, $|2);}. |
|00004700| 3b 0d 0d 64 69 72 65 63 | 74 5f 61 62 73 74 72 61 |;..direc|t_abstra|
|00004710| 63 74 5f 64 63 6c 74 6f | 72 0d 20 20 20 3a 20 27 |ct_dclto|r. : '|
|00004720| 28 27 20 61 62 73 74 72 | 61 63 74 5f 64 63 6c 74 |(' abstr|act_dclt|
|00004730| 6f 72 20 27 29 27 20 20 | 20 20 20 20 20 20 20 20 |or ')' | |
|00004740| 20 20 20 20 20 20 7b 24 | 24 20 3d 20 6e 6f 64 65 | {$|$ = node|
|00004750| 31 28 50 72 65 66 78 4e | 64 2c 20 24 31 2c 20 24 |1(PrefxN|d, $1, $|
|00004760| 32 29 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |2);. | |
|00004770| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004790| 20 66 72 65 65 5f 74 28 | 24 33 29 3b 7d 0d 20 20 | free_t(|$3);}. |
|000047a0| 20 7c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |
|000047b0| 20 20 20 20 20 20 20 20 | 20 20 27 5b 27 20 6f 70 | | '[' op|
|000047c0| 74 5f 63 6f 6e 73 74 61 | 6e 74 5f 65 78 70 72 20 |t_consta|nt_expr |
|000047d0| 20 27 5d 27 0d 20 20 20 | 20 20 20 20 20 20 20 20 | ']'. | |
|000047e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000047f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004800| 20 7b 24 24 20 3d 20 6e | 6f 64 65 32 28 42 69 6e | {$$ = n|ode2(Bin|
|00004810| 72 79 4e 64 2c 20 24 31 | 2c 20 4e 55 4c 4c 2c 20 |ryNd, $1|, NULL, |
|00004820| 24 32 29 3b 0d 20 20 20 | 20 20 20 20 20 20 20 20 |$2);. | |
|00004830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004850| 20 20 66 72 65 65 5f 74 | 28 24 33 29 3b 7d 0d 20 | free_t|($3);}. |
|00004860| 20 20 7c 20 64 69 72 65 | 63 74 5f 61 62 73 74 72 | | dire|ct_abstr|
|00004870| 61 63 74 5f 64 63 6c 74 | 6f 72 20 27 5b 27 20 6f |act_dclt|or '[' o|
|00004880| 70 74 5f 63 6f 6e 73 74 | 61 6e 74 5f 65 78 70 72 |pt_const|ant_expr|
|00004890| 20 20 27 5d 27 0d 20 20 | 20 20 20 20 20 20 20 20 | ']'. | |
|000048a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000048b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000048c0| 20 20 7b 24 24 20 3d 20 | 6e 6f 64 65 32 28 42 69 | {$$ = |node2(Bi|
|000048d0| 6e 72 79 4e 64 2c 20 24 | 32 2c 20 24 31 2c 20 24 |nryNd, $|2, $1, $|
|000048e0| 33 29 3b 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |3);. | |
|000048f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004910| 20 66 72 65 65 5f 74 28 | 24 34 29 3b 7d 0d 20 20 | free_t(|$4);}. |
|00004920| 20 7c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | | |
|00004930| 20 20 20 20 20 20 20 20 | 20 20 27 28 27 20 7b 70 | | '(' {p|
|00004940| 75 73 68 5f 63 6e 74 78 | 74 28 31 29 3b 7d 20 6f |ush_cntx|t(1);} o|
|00004950| 70 74 5f 70 61 72 61 6d | 5f 74 79 70 65 5f 6c 73 |pt_param|_type_ls|
|00004960| 74 20 27 29 27 0d 20 20 | 20 20 20 20 20 20 20 20 |t ')'. | |
|00004970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004990| 20 20 7b 24 24 20 3d 20 | 6e 6f 64 65 32 28 42 69 | {$$ = |node2(Bi|
|000049a0| 6e 72 79 4e 64 2c 20 24 | 34 2c 20 4e 55 4c 4c 2c |nryNd, $|4, NULL,|
|000049b0| 20 24 33 29 3b 0d 20 20 | 20 20 20 20 20 20 20 20 | $3);. | |
|000049c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000049e0| 20 20 20 70 6f 70 5f 63 | 6e 74 78 74 28 29 3b 0d | pop_c|ntxt();.|
|000049f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 66 72 65 | | fre|
|00004a20| 65 5f 74 28 24 31 29 3b | 7d 0d 20 20 20 7c 20 64 |e_t($1);|}. | d|
|00004a30| 69 72 65 63 74 5f 61 62 | 73 74 72 61 63 74 5f 64 |irect_ab|stract_d|
|00004a40| 63 6c 74 6f 72 20 27 28 | 27 20 7b 70 75 73 68 5f |cltor '(|' {push_|
|00004a50| 63 6e 74 78 74 28 31 29 | 3b 7d 20 6f 70 74 5f 70 |cntxt(1)|;} opt_p|
|00004a60| 61 72 61 6d 5f 74 79 70 | 65 5f 6c 73 74 20 27 29 |aram_typ|e_lst ')|
|00004a70| 27 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |'. | |
|00004a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004a90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 24 | | {$|
|00004aa0| 24 20 3d 20 6e 6f 64 65 | 32 28 42 69 6e 72 79 4e |$ = node|2(BinryN|
|00004ab0| 64 2c 20 24 35 2c 20 24 | 31 2c 20 24 34 29 3b 0d |d, $5, $|1, $4);.|
|00004ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 70 6f 70 | | pop|
|00004af0| 5f 63 6e 74 78 74 28 29 | 3b 0d 20 20 20 20 20 20 |_cntxt()|;. |
|00004b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004b20| 20 20 20 20 20 20 20 66 | 72 65 65 5f 74 28 24 32 | f|ree_t($2|
|00004b30| 29 3b 7d 0d 20 20 20 3b | 0d 0d 69 6e 69 74 69 61 |);}. ;|..initia|
|00004b40| 6c 69 7a 65 72 0d 20 20 | 20 3a 20 61 73 73 69 67 |lizer. | : assig|
|00004b50| 6e 5f 65 78 70 72 0d 20 | 20 20 7c 20 27 7b 27 20 |n_expr. | | '{' |
|00004b60| 69 6e 69 74 69 61 6c 69 | 7a 65 72 5f 6c 73 74 20 |initiali|zer_lst |
|00004b70| 27 7d 27 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |'}'. | |
|00004b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 7b 24 24 20 | | {$$ |
|00004b90| 3d 20 6e 6f 64 65 31 28 | 50 72 65 66 78 4e 64 2c |= node1(|PrefxNd,|
|00004ba0| 20 24 31 2c 20 24 32 29 | 3b 20 66 72 65 65 5f 74 | $1, $2)|; free_t|
|00004bb0| 28 24 33 29 3b 7d 0d 20 | 20 20 7c 20 27 7b 27 20 |($3);}. | | '{' |
|00004bc0| 69 6e 69 74 69 61 6c 69 | 7a 65 72 5f 6c 73 74 20 |initiali|zer_lst |
|00004bd0| 27 2c 27 20 27 7d 27 0d | 20 20 20 20 20 20 20 20 |',' '}'.| |
|00004be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004bf0| 7b 24 24 20 3d 20 6e 6f | 64 65 31 28 50 72 65 66 |{$$ = no|de1(Pref|
|00004c00| 78 4e 64 2c 20 24 31 2c | 20 6e 6f 64 65 32 28 43 |xNd, $1,| node2(C|
|00004c10| 6f 6d 6d 61 4e 64 2c 20 | 24 33 2c 20 24 32 2c 20 |ommaNd, |$3, $2, |
|00004c20| 4e 55 4c 4c 29 29 3b 0d | 20 20 20 20 20 20 20 20 |NULL));.| |
|00004c30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004c40| 20 20 66 72 65 65 5f 74 | 28 24 34 29 3b 7d 0d 20 | free_t|($4);}. |
|00004c50| 20 20 3b 0d 0d 69 6e 69 | 74 69 61 6c 69 7a 65 72 | ;..ini|tializer|
|00004c60| 5f 6c 73 74 0d 20 20 20 | 3a 20 69 6e 69 74 69 61 |_lst. |: initia|
|00004c70| 6c 69 7a 65 72 0d 20 20 | 20 7c 20 69 6e 69 74 69 |lizer. | | initi|
|00004c80| 61 6c 69 7a 65 72 5f 6c | 73 74 20 27 2c 27 20 69 |alizer_l|st ',' i|
|00004c90| 6e 69 74 69 61 6c 69 7a | 65 72 20 7b 24 24 20 3d |nitializ|er {$$ =|
|00004ca0| 20 6e 6f 64 65 32 28 43 | 6f 6d 6d 61 4e 64 2c 20 | node2(C|ommaNd, |
|00004cb0| 24 32 2c 20 24 31 2c 20 | 24 33 29 3b 7d 0d 20 20 |$2, $1, |$3);}. |
|00004cc0| 20 3b 0d 0d 73 74 6d 74 | 0d 20 20 20 3a 20 6c 61 | ;..stmt|. : la|
|00004cd0| 62 65 6c 65 64 5f 73 74 | 6d 74 0d 20 20 20 7c 20 |beled_st|mt. | |
|00004ce0| 6e 6f 6e 5f 6c 62 6c 5f | 73 74 6d 74 0d 20 20 20 |non_lbl_|stmt. |
|00004cf0| 3b 0d 0d 6e 6f 6e 5f 6c | 62 6c 5f 73 74 6d 74 0d |;..non_l|bl_stmt.|
|00004d00| 20 20 20 3a 20 7b 70 75 | 73 68 5f 63 6e 74 78 74 | : {pu|sh_cntxt|
|00004d10| 28 31 29 3b 7d 20 63 6f | 6d 70 6f 75 6e 64 5f 73 |(1);} co|mpound_s|
|00004d20| 74 6d 74 20 7b 24 24 20 | 3d 20 24 32 3b 20 70 6f |tmt {$$ |= $2; po|
|00004d30| 70 5f 63 6e 74 78 74 28 | 29 3b 7d 0d 20 20 20 7c |p_cntxt(|);}. ||
|00004d40| 20 65 78 70 72 5f 73 74 | 6d 74 0d 20 20 20 7c 20 | expr_st|mt. | |
|00004d50| 73 65 6c 65 63 74 69 6f | 6e 5f 73 74 6d 74 0d 20 |selectio|n_stmt. |
|00004d60| 20 20 7c 20 69 74 65 72 | 61 74 69 6f 6e 5f 73 74 | | iter|ation_st|
|00004d70| 6d 74 0d 20 20 20 7c 20 | 6a 75 6d 70 5f 73 74 6d |mt. | |jump_stm|
|00004d80| 74 0d 20 20 20 7c 20 52 | 75 6e 65 72 72 20 27 28 |t. | R|unerr '(|
|00004d90| 27 20 61 73 73 69 67 6e | 5f 65 78 70 72 20 27 29 |' assign|_expr ')|
|00004da0| 27 20 27 3b 27 0d 20 20 | 20 20 20 20 7b 24 24 20 |' ';'. | {$$ |
|00004db0| 3d 20 6e 6f 64 65 32 28 | 42 69 6e 72 79 4e 64 2c |= node2(|BinryNd,|
|00004dc0| 20 24 31 2c 20 24 33 2c | 20 4e 55 4c 4c 29 3b 20 | $1, $3,| NULL); |
|00004dd0| 66 72 65 65 5f 74 28 24 | 32 29 3b 20 66 72 65 65 |free_t($|2); free|
|00004de0| 5f 74 28 24 34 29 3b 7d | 0d 20 20 20 7c 20 52 75 |_t($4);}|. | Ru|
|00004df0| 6e 65 72 72 20 27 28 27 | 20 61 73 73 69 67 6e 5f |nerr '('| assign_|
|00004e00| 65 78 70 72 20 27 2c 27 | 20 61 73 73 69 67 6e 5f |expr ','| assign_|
|00004e10| 65 78 70 72 20 27 29 27 | 20 27 3b 27 0d 20 20 20 |expr ')'| ';'. |
|00004e20| 20 20 20 7b 24 24 20 3d | 20 6e 6f 64 65 32 28 42 | {$$ =| node2(B|
|00004e30| 69 6e 72 79 4e 64 2c 20 | 24 31 2c 20 24 33 2c 20 |inryNd, |$1, $3, |
|00004e40| 24 35 29 3b 20 66 72 65 | 65 5f 74 28 24 32 29 3b |$5); fre|e_t($2);|
|00004e50| 20 66 72 65 65 5f 74 28 | 24 34 29 3b 20 66 72 65 | free_t(|$4); fre|
|00004e60| 65 5f 74 28 24 36 29 3b | 7d 0d 20 20 20 3b 0d 0d |e_t($6);|}. ;..|
|00004e70| 6c 61 62 65 6c 65 64 5f | 73 74 6d 74 0d 20 20 20 |labeled_|stmt. |
|00004e80| 3a 20 6c 61 62 65 6c 20 | 27 3a 27 20 73 74 6d 74 |: label |':' stmt|
|00004e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 7b 24 | | {$|
|00004ea0| 24 20 3d 20 6e 6f 64 65 | 32 28 42 69 6e 72 79 4e |$ = node|2(BinryN|
|00004eb0| 64 2c 20 24 32 2c 20 24 | 31 2c 20 24 33 29 3b 7d |d, $2, $|1, $3);}|
|00004ec0| 0d 20 20 20 7c 20 43 61 | 73 65 20 63 6f 6e 73 74 |. | Ca|se const|
|00004ed0| 61 6e 74 5f 65 78 70 72 | 20 27 3a 27 20 73 74 6d |ant_expr| ':' stm|
|00004ee0| 74 20 7b 24 24 20 3d 20 | 6e 6f 64 65 32 28 42 69 |t {$$ = |node2(Bi|
|00004ef0| 6e 72 79 4e 64 2c 20 24 | 31 2c 20 24 32 2c 20 24 |nryNd, $|1, $2, $|
|00004f00| 34 29 3b 20 66 72 65 65 | 5f 74 28 24 33 29 3b 7d |4); free|_t($3);}|
|00004f10| 0d 20 20 20 7c 20 44 65 | 66 61 75 6c 74 20 27 3a |. | De|fault ':|
|00004f20| 27 20 73 74 6d 74 20 20 | 20 20 20 20 20 20 20 20 |' stmt | |
|00004f30| 20 20 7b 24 24 20 3d 20 | 6e 6f 64 65 31 28 50 72 | {$$ = |node1(Pr|
|00004f40| 65 66 78 4e 64 2c 20 24 | 31 2c 20 24 33 29 3b 20 |efxNd, $|1, $3); |
|00004f50| 66 72 65 65 5f 74 28 24 | 32 29 3b 7d 0d 20 20 20 |free_t($|2);}. |
|00004f60| 3b 0d 0d 63 6f 6d 70 6f | 75 6e 64 5f 73 74 6d 74 |;..compo|und_stmt|
|00004f70| 0d 20 20 20 3a 20 27 7b | 27 20 20 20 20 20 20 20 |. : '{|' |
|00004f80| 20 20 20 20 20 6f 70 74 | 5f 73 74 6d 74 5f 6c 73 | opt|_stmt_ls|
|00004f90| 74 20 27 7d 27 20 7b 24 | 24 20 3d 20 63 6f 6d 70 |t '}' {$|$ = comp|
|00004fa0| 5f 6e 64 28 24 31 2c 20 | 4e 55 4c 4c 2c 20 24 32 |_nd($1, |NULL, $2|
|00004fb0| 29 3b 20 66 72 65 65 5f | 74 28 24 33 29 3b 7d 0d |); free_|t($3);}.|
|00004fc0| 20 20 20 7c 20 27 7b 27 | 20 6c 6f 63 61 6c 5f 64 | | '{'| local_d|
|00004fd0| 63 6c 73 20 6f 70 74 5f | 73 74 6d 74 5f 6c 73 74 |cls opt_|stmt_lst|
|00004fe0| 20 27 7d 27 20 7b 24 24 | 20 3d 20 63 6f 6d 70 5f | '}' {$$| = comp_|
|00004ff0| 6e 64 28 24 31 2c 20 24 | 32 2c 20 20 20 24 33 29 |nd($1, $|2, $3)|
|00005000| 3b 20 66 72 65 65 5f 74 | 28 24 34 29 3b 7d 0d 20 |; free_t|($4);}. |
|00005010| 20 20 3b 0d 0d 64 63 6c | 74 69 6f 6e 5f 6c 73 74 | ;..dcl|tion_lst|
|00005020| 0d 20 20 20 3a 20 64 63 | 6c 74 69 6f 6e 0d 20 20 |. : dc|ltion. |
|00005030| 20 7c 20 64 63 6c 74 69 | 6f 6e 5f 6c 73 74 20 64 | | dclti|on_lst d|
|00005040| 63 6c 74 69 6f 6e 20 7b | 24 24 20 3d 20 6e 6f 64 |cltion {|$$ = nod|
|00005050| 65 32 28 4c 73 74 4e 64 | 2c 20 4e 55 4c 4c 2c 20 |e2(LstNd|, NULL, |
|00005060| 24 31 2c 20 24 32 29 3b | 7d 0d 20 20 20 3b 0d 0d |$1, $2);|}. ;..|
|00005070| 6f 70 74 5f 64 63 6c 74 | 69 6f 6e 5f 6c 73 74 0d |opt_dclt|ion_lst.|
|00005080| 20 20 20 3a 20 7b 24 24 | 20 3d 20 4e 55 4c 4c 3b | : {$$| = NULL;|
|00005090| 7d 0d 20 20 20 7c 20 64 | 63 6c 74 69 6f 6e 5f 6c |}. | d|cltion_l|
|000050a0| 73 74 0d 20 20 20 3b 0d | 0d 6c 6f 63 61 6c 5f 64 |st. ;.|.local_d|
|000050b0| 63 6c 73 0d 20 20 20 3a | 20 6c 6f 63 61 6c 5f 64 |cls. :| local_d|
|000050c0| 63 6c 0d 20 20 20 7c 20 | 6c 6f 63 61 6c 5f 64 63 |cl. | |local_dc|
|000050d0| 6c 73 20 6c 6f 63 61 6c | 5f 64 63 6c 20 7b 24 24 |ls local|_dcl {$$|
|000050e0| 20 3d 20 28 24 32 20 3d | 3d 20 4e 55 4c 4c 20 3f | = ($2 =|= NULL ?|
|000050f0| 20 24 31 20 3a 20 6e 6f | 64 65 32 28 4c 73 74 4e | $1 : no|de2(LstN|
|00005100| 64 2c 20 4e 55 4c 4c 2c | 20 24 31 2c 20 24 32 29 |d, NULL,| $1, $2)|
|00005110| 29 3b 7d 0d 20 20 20 3b | 0d 0d 6c 6f 63 61 6c 5f |);}. ;|..local_|
|00005120| 64 63 6c 0d 20 20 20 3a | 20 64 63 6c 74 69 6f 6e |dcl. :| dcltion|
|00005130| 0d 20 20 20 7c 20 54 65 | 6e 64 65 64 20 74 65 6e |. | Te|nded ten|
|00005140| 64 65 64 5f 74 79 70 65 | 20 69 6e 69 74 5f 64 63 |ded_type| init_dc|
|00005150| 6c 74 6f 72 5f 6c 73 74 | 20 27 3b 27 0d 20 20 20 |ltor_lst| ';'. |
|00005160| 20 20 20 20 20 20 20 20 | 20 20 7b 24 24 20 3d 20 | | {$$ = |
|00005170| 4e 55 4c 4c 3b 20 66 72 | 65 65 5f 74 28 24 31 29 |NULL; fr|ee_t($1)|
|00005180| 3b 20 66 72 65 65 5f 74 | 28 24 34 29 3b 20 64 63 |; free_t|($4); dc|
|00005190| 6c 5f 73 74 6b 2d 3e 6b | 69 6e 64 5f 64 63 6c 20 |l_stk->k|ind_dcl |
|000051a0| 3d 20 4f 74 68 65 72 44 | 63 6c 3b 7d 0d 20 20 20 |= OtherD|cl;}. |
|000051b0| 3b 0d 0d 74 65 6e 64 65 | 64 5f 74 79 70 65 0d 20 |;..tende|d_type. |
|000051c0| 20 20 3a 20 43 68 61 72 | 09 09 7b 74 6e 64 5f 63 | : Char|..{tnd_c|
|000051d0| 68 61 72 28 29 3b 20 66 | 72 65 65 5f 74 28 24 31 |har(); f|ree_t($1|
|000051e0| 29 3b 7d 0d 20 20 20 7c | 20 53 74 72 75 63 74 20 |);}. || Struct |
|000051f0| 69 64 65 6e 74 69 66 69 | 65 72 20 20 7b 74 6e 64 |identifi|er {tnd|
|00005200| 5f 73 74 72 63 74 28 24 | 32 29 3b 20 66 72 65 65 |_strct($|2); free|
|00005210| 5f 74 28 24 31 29 3b 7d | 0d 20 20 20 7c 20 53 74 |_t($1);}|. | St|
|00005220| 72 75 63 74 20 54 79 70 | 65 44 65 66 4e 61 6d 65 |ruct Typ|eDefName|
|00005230| 20 7b 74 6e 64 5f 73 74 | 72 63 74 28 24 32 29 3b | {tnd_st|rct($2);|
|00005240| 20 66 72 65 65 5f 74 28 | 24 31 29 3b 7d 0d 20 20 | free_t(|$1);}. |
|00005250| 20 7c 20 55 6e 69 6f 6e | 20 20 69 64 65 6e 74 69 | | Union| identi|
|00005260| 66 69 65 72 20 20 7b 74 | 6e 64 5f 75 6e 69 6f 6e |fier {t|nd_union|
|00005270| 28 24 32 29 3b 20 66 72 | 65 65 5f 74 28 24 31 29 |($2); fr|ee_t($1)|
|00005280| 3b 7d 0d 20 20 20 3b 0d | 0d 73 74 6d 74 5f 6c 73 |;}. ;.|.stmt_ls|
|00005290| 74 0d 20 20 20 3a 20 73 | 74 6d 74 0d 20 20 20 7c |t. : s|tmt. ||
|000052a0| 20 73 74 6d 74 5f 6c 73 | 74 20 73 74 6d 74 20 7b | stmt_ls|t stmt {|
|000052b0| 24 24 20 3d 20 6e 6f 64 | 65 32 28 43 6f 6e 43 61 |$$ = nod|e2(ConCa|
|000052c0| 74 4e 64 2c 20 4e 55 4c | 4c 2c 20 24 31 2c 20 24 |tNd, NUL|L, $1, $|
|000052d0| 32 29 3b 7d 0d 20 20 20 | 3b 0d 0d 6f 70 74 5f 73 |2);}. |;..opt_s|
|000052e0| 74 6d 74 5f 6c 73 74 0d | 20 20 20 3a 20 7b 24 24 |tmt_lst.| : {$$|
|000052f0| 20 3d 20 4e 55 4c 4c 3b | 7d 0d 20 20 20 7c 20 73 | = NULL;|}. | s|
|00005300| 74 6d 74 5f 6c 73 74 0d | 20 20 20 3b 0d 65 78 70 |tmt_lst.| ;.exp|
|00005310| 72 5f 73 74 6d 74 0d 20 | 20 20 3a 20 6f 70 74 5f |r_stmt. | : opt_|
|00005320| 65 78 70 72 20 27 3b 27 | 20 7b 24 24 20 3d 20 6e |expr ';'| {$$ = n|
|00005330| 6f 64 65 31 28 50 73 74 | 66 78 4e 64 2c 20 24 32 |ode1(Pst|fxNd, $2|
|00005340| 2c 20 24 31 29 3b 7d 0d | 20 20 20 3b 0d 0d 73 65 |, $1);}.| ;..se|
|00005350| 6c 65 63 74 69 6f 6e 5f | 73 74 6d 74 0d 20 20 20 |lection_|stmt. |
|00005360| 3a 20 49 66 20 27 28 27 | 20 65 78 70 72 20 27 29 |: If '('| expr ')|
|00005370| 27 20 73 74 6d 74 20 20 | 20 25 70 72 65 63 20 49 |' stmt | %prec I|
|00005380| 66 53 74 6d 74 20 7b 24 | 24 20 3d 20 6e 6f 64 65 |fStmt {$|$ = node|
|00005390| 33 28 54 72 6e 72 79 4e | 64 2c 20 24 31 2c 20 24 |3(TrnryN|d, $1, $|
|000053a0| 33 2c 20 24 35 2c 4e 55 | 4c 4c 29 3b 0d 20 20 20 |3, $5,NU|LL);. |
|000053b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000053c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000053d0| 20 20 20 20 20 20 20 66 | 72 65 65 5f 74 28 24 32 | f|ree_t($2|
|000053e0| 29 3b 20 66 72 65 65 5f | 74 28 24 34 29 3b 7d 0d |); free_|t($4);}.|
|000053f0| 20 20 20 7c 20 49 66 20 | 27 28 27 20 65 78 70 72 | | If |'(' expr|
|00005400| 20 27 29 27 20 73 74 6d | 74 20 45 6c 73 65 20 73 | ')' stm|t Else s|
|00005410| 74 6d 74 20 20 20 20 20 | 20 7b 24 24 20 3d 20 6e |tmt | {$$ = n|
|00005420| 6f 64 65 33 28 54 72 6e | 72 79 4e 64 2c 20 24 31 |ode3(Trn|ryNd, $1|
|00005430| 2c 20 24 33 2c 20 24 35 | 2c 20 24 37 29 3b 0d 20 |, $3, $5|, $7);. |
|00005440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005460| 20 20 20 20 20 20 20 20 | 20 66 72 65 65 5f 74 28 | | free_t(|
|00005470| 24 32 29 3b 20 66 72 65 | 65 5f 74 28 24 34 29 3b |$2); fre|e_t($4);|
|00005480| 20 66 72 65 65 5f 74 28 | 24 36 29 3b 7d 0d 20 20 | free_t(|$6);}. |
|00005490| 20 7c 20 53 77 69 74 63 | 68 20 27 28 27 20 65 78 | | Switc|h '(' ex|
|000054a0| 70 72 20 27 29 27 20 73 | 74 6d 74 20 20 20 20 20 |pr ')' s|tmt |
|000054b0| 20 20 20 20 20 20 20 7b | 24 24 20 3d 20 6e 6f 64 | {|$$ = nod|
|000054c0| 65 32 28 42 69 6e 72 79 | 4e 64 2c 20 24 31 2c 20 |e2(Binry|Nd, $1, |
|000054d0| 24 33 2c 20 24 35 29 3b | 0d 20 20 20 20 20 20 20 |$3, $5);|. |
|000054e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000054f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005500| 20 20 20 66 72 65 65 5f | 74 28 24 32 29 3b 20 66 | free_|t($2); f|
|00005510| 72 65 65 5f 74 28 24 34 | 29 3b 7d 0d 20 20 20 7c |ree_t($4|);}. ||
|00005520| 20 54 79 70 65 5f 63 61 | 73 65 20 65 78 70 72 20 | Type_ca|se expr |
|00005530| 4f 66 20 27 7b 27 20 63 | 5f 74 79 70 65 5f 73 65 |Of '{' c|_type_se|
|00005540| 6c 65 63 74 5f 6c 73 74 | 20 63 5f 6f 70 74 5f 64 |lect_lst| c_opt_d|
|00005550| 65 66 61 75 6c 74 20 27 | 7d 27 0d 20 20 20 20 20 |efault '|}'. |
|00005560| 20 7b 24 24 20 3d 20 6e | 6f 64 65 33 28 54 72 6e | {$$ = n|ode3(Trn|
|00005570| 72 79 4e 64 2c 20 24 31 | 2c 20 24 32 2c 20 24 35 |ryNd, $1|, $2, $5|
|00005580| 2c 20 24 36 29 3b 20 66 | 72 65 65 5f 74 28 24 33 |, $6); f|ree_t($3|
|00005590| 29 3b 20 66 72 65 65 5f | 74 28 24 34 29 3b 20 66 |); free_|t($4); f|
|000055a0| 72 65 65 5f 74 28 24 37 | 29 3b 7d 0d 20 20 20 3b |ree_t($7|);}. ;|
|000055b0| 0d 0d 63 5f 74 79 70 65 | 5f 73 65 6c 65 63 74 5f |..c_type|_select_|
|000055c0| 6c 73 74 0d 20 20 20 3a | 20 20 20 20 20 20 20 20 |lst. :| |
|000055d0| 20 20 20 20 20 20 20 20 | 20 20 20 63 5f 74 79 70 | | c_typ|
|000055e0| 65 5f 73 65 6c 65 63 74 | 20 7b 24 24 20 3d 20 6e |e_select| {$$ = n|
|000055f0| 6f 64 65 32 28 43 6f 6e | 43 61 74 4e 64 2c 20 4e |ode2(Con|CatNd, N|
|00005600| 55 4c 4c 2c 20 4e 55 4c | 4c 2c 20 24 31 29 3b 7d |ULL, NUL|L, $1);}|
|00005610| 0d 20 20 20 7c 20 63 5f | 74 79 70 65 5f 73 65 6c |. | c_|type_sel|
|00005620| 65 63 74 5f 6c 73 74 20 | 63 5f 74 79 70 65 5f 73 |ect_lst |c_type_s|
|00005630| 65 6c 65 63 74 20 7b 24 | 24 20 3d 20 6e 6f 64 65 |elect {$|$ = node|
|00005640| 32 28 43 6f 6e 43 61 74 | 4e 64 2c 20 4e 55 4c 4c |2(ConCat|Nd, NULL|
|00005650| 2c 20 20 20 24 31 2c 20 | 24 32 29 3b 7d 0d 20 20 |, $1, |$2);}. |
|00005660| 20 3b 0d 0d 63 5f 74 79 | 70 65 5f 73 65 6c 65 63 | ;..c_ty|pe_selec|
|00005670| 74 0d 20 20 20 3a 20 73 | 65 6c 65 63 74 6f 72 5f |t. : s|elector_|
|00005680| 6c 73 74 20 6e 6f 6e 5f | 6c 62 6c 5f 73 74 6d 74 |lst non_|lbl_stmt|
|00005690| 20 7b 24 24 20 3d 20 6e | 6f 64 65 32 28 43 6f 6e | {$$ = n|ode2(Con|
|000056a0| 43 61 74 4e 64 2c 20 4e | 55 4c 4c 2c 20 24 31 2c |CatNd, N|ULL, $1,|
|000056b0| 20 24 32 29 3b 7d 0d 20 | 20 20 3b 0d 0d 63 5f 6f | $2);}. | ;..c_o|
|000056c0| 70 74 5f 64 65 66 61 75 | 6c 74 0d 20 20 20 3a 20 |pt_defau|lt. : |
|000056d0| 7b 24 24 20 3d 20 4e 55 | 4c 4c 3b 7d 0d 20 20 20 |{$$ = NU|LL;}. |
|000056e0| 7c 20 44 65 66 61 75 6c | 74 20 27 3a 27 20 6e 6f || Defaul|t ':' no|
|000056f0| 6e 5f 6c 62 6c 5f 73 74 | 6d 74 20 7b 24 24 20 3d |n_lbl_st|mt {$$ =|
|00005700| 20 24 33 3b 20 66 72 65 | 65 5f 74 28 24 31 29 3b | $3; fre|e_t($1);|
|00005710| 20 66 72 65 65 5f 74 28 | 24 32 29 3b 7d 0d 20 20 | free_t(|$2);}. |
|00005720| 20 3b 0d 0d 69 74 65 72 | 61 74 69 6f 6e 5f 73 74 | ;..iter|ation_st|
|00005730| 6d 74 0d 20 20 20 3a 20 | 57 68 69 6c 65 20 27 28 |mt. : |While '(|
|00005740| 27 20 65 78 70 72 20 27 | 29 27 20 73 74 6d 74 20 |' expr '|)' stmt |
|00005750| 20 20 20 20 20 20 20 20 | 20 20 7b 24 24 20 3d 20 | | {$$ = |
|00005760| 6e 6f 64 65 32 28 42 69 | 6e 72 79 4e 64 2c 20 24 |node2(Bi|nryNd, $|
|00005770| 31 2c 20 24 33 2c 20 24 | 35 29 3b 0d 20 20 20 20 |1, $3, $|5);. |
|00005780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000057a0| 20 20 20 20 66 72 65 65 | 5f 74 28 24 32 29 3b 20 | free|_t($2); |
|000057b0| 66 72 65 65 5f 74 28 24 | 34 29 3b 7d 0d 20 20 20 |free_t($|4);}. |
|000057c0| 7c 20 44 6f 20 73 74 6d | 74 20 57 68 69 6c 65 20 || Do stm|t While |
|000057d0| 27 28 27 20 65 78 70 72 | 20 27 29 27 20 27 3b 27 |'(' expr| ')' ';'|
|000057e0| 20 20 20 20 7b 24 24 20 | 3d 20 6e 6f 64 65 32 28 | {$$ |= node2(|
|000057f0| 42 69 6e 72 79 4e 64 2c | 20 24 31 2c 20 24 32 2c |BinryNd,| $1, $2,|
|00005800| 20 24 35 29 3b 0d 20 20 | 20 20 20 20 20 20 20 20 | $5);. | |
|00005810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 66 72 | | fr|
|00005830| 65 65 5f 74 28 24 33 29 | 3b 20 66 72 65 65 5f 74 |ee_t($3)|; free_t|
|00005840| 28 24 34 29 3b 20 66 72 | 65 65 5f 74 28 24 36 29 |($4); fr|ee_t($6)|
|00005850| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00005860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005870| 20 20 20 20 20 20 20 20 | 20 20 66 72 65 65 5f 74 | | free_t|
|00005880| 28 24 37 29 3b 7d 0d 20 | 20 20 7c 20 46 6f 72 20 |($7);}. | | For |
|00005890| 27 28 27 20 6f 70 74 5f | 65 78 70 72 20 27 3b 27 |'(' opt_|expr ';'|
|000058a0| 20 6f 70 74 5f 65 78 70 | 72 20 27 3b 27 20 6f 70 | opt_exp|r ';' op|
|000058b0| 74 5f 65 78 70 72 20 27 | 29 27 20 73 74 6d 74 0d |t_expr '|)' stmt.|
|000058c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000058d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000058e0| 20 20 20 20 20 20 20 7b | 24 24 20 3d 20 6e 6f 64 | {|$$ = nod|
|000058f0| 65 34 28 51 75 61 64 4e | 64 2c 20 24 31 2c 20 24 |e4(QuadN|d, $1, $|
|00005900| 33 2c 20 24 35 2c 20 24 | 37 2c 20 24 39 29 3b 0d |3, $5, $|7, $9);.|
|00005910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005930| 20 20 20 20 20 20 20 20 | 66 72 65 65 5f 74 28 24 | |free_t($|
|00005940| 32 29 3b 20 66 72 65 65 | 5f 74 28 24 34 29 3b 20 |2); free|_t($4); |
|00005950| 66 72 65 65 5f 74 28 24 | 36 29 3b 0d 20 20 20 20 |free_t($|6);. |
|00005960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005980| 20 20 20 20 66 72 65 65 | 5f 74 28 24 38 29 3b 7d | free|_t($8);}|
|00005990| 0d 20 20 20 3b 0d 0d 6a | 75 6d 70 5f 73 74 6d 74 |. ;..j|ump_stmt|
|000059a0| 0d 20 20 20 3a 20 47 6f | 74 6f 20 6c 61 62 65 6c |. : Go|to label|
|000059b0| 27 3b 27 20 20 20 20 20 | 20 20 7b 24 24 20 3d 20 |';' | {$$ = |
|000059c0| 6e 6f 64 65 31 28 50 72 | 65 66 78 4e 64 2c 20 24 |node1(Pr|efxNd, $|
|000059d0| 31 2c 20 24 32 29 3b 20 | 66 72 65 65 5f 74 28 24 |1, $2); |free_t($|
|000059e0| 33 29 3b 7d 0d 20 20 20 | 7c 20 43 6f 6e 74 69 6e |3);}. || Contin|
|000059f0| 75 65 20 27 3b 27 20 20 | 20 20 20 20 20 20 7b 24 |ue ';' | {$|
|00005a00| 24 20 3d 20 6e 6f 64 65 | 30 28 50 72 69 6d 72 79 |$ = node|0(Primry|
|00005a10| 4e 64 2c 20 24 31 29 3b | 20 66 72 65 65 5f 74 28 |Nd, $1);| free_t(|
|00005a20| 24 32 29 3b 7d 0d 20 20 | 20 7c 20 42 72 65 61 6b |$2);}. | | Break|
|00005a30| 20 27 3b 27 20 20 20 20 | 20 20 20 20 20 20 20 7b | ';' | {|
|00005a40| 24 24 20 3d 20 6e 6f 64 | 65 30 28 50 72 69 6d 72 |$$ = nod|e0(Primr|
|00005a50| 79 4e 64 2c 20 24 31 29 | 3b 20 66 72 65 65 5f 74 |yNd, $1)|; free_t|
|00005a60| 28 24 32 29 3b 7d 0d 20 | 20 20 7c 20 52 65 74 75 |($2);}. | | Retu|
|00005a70| 72 6e 20 72 65 74 5f 76 | 61 6c 20 27 3b 27 20 20 |rn ret_v|al ';' |
|00005a80| 7b 24 24 20 3d 20 6e 6f | 64 65 31 28 50 72 65 66 |{$$ = no|de1(Pref|
|00005a90| 78 4e 64 2c 20 24 31 2c | 20 24 32 29 3b 20 66 72 |xNd, $1,| $2); fr|
|00005aa0| 65 65 5f 74 28 24 33 29 | 3b 7d 0d 20 20 20 7c 20 |ee_t($3)|;}. | |
|00005ab0| 53 75 73 70 65 6e 64 20 | 72 65 74 5f 76 61 6c 20 |Suspend |ret_val |
|00005ac0| 27 3b 27 20 7b 24 24 20 | 3d 20 6e 6f 64 65 31 28 |';' {$$ |= node1(|
|00005ad0| 50 72 65 66 78 4e 64 2c | 20 24 31 2c 20 24 32 29 |PrefxNd,| $1, $2)|
|00005ae0| 3b 20 66 72 65 65 5f 74 | 28 24 33 29 3b 7d 0d 20 |; free_t|($3);}. |
|00005af0| 20 20 7c 20 46 61 69 6c | 20 27 3b 27 20 20 20 20 | | Fail| ';' |
|00005b00| 20 20 20 20 20 20 20 20 | 7b 24 24 20 3d 20 6e 6f | |{$$ = no|
|00005b10| 64 65 30 28 50 72 69 6d | 72 79 4e 64 2c 20 24 31 |de0(Prim|ryNd, $1|
|00005b20| 29 3b 20 66 72 65 65 5f | 74 28 24 32 29 3b 7d 0d |); free_|t($2);}.|
|00005b30| 20 20 20 7c 20 45 72 72 | 6f 72 66 61 69 6c 20 27 | | Err|orfail '|
|00005b40| 3b 27 20 20 20 20 20 20 | 20 7b 24 24 20 3d 20 6e |;' | {$$ = n|
|00005b50| 6f 64 65 30 28 50 72 69 | 6d 72 79 4e 64 2c 20 24 |ode0(Pri|mryNd, $|
|00005b60| 31 29 3b 20 66 72 65 65 | 5f 74 28 24 32 29 3b 7d |1); free|_t($2);}|
|00005b70| 0d 20 20 20 3b 0d 0d 74 | 72 61 6e 73 6c 61 74 69 |. ;..t|ranslati|
|00005b80| 6f 6e 5f 75 6e 69 74 0d | 20 20 20 3a 20 0d 20 20 |on_unit.| : . |
|00005b90| 20 7c 20 65 78 74 72 6e | 5f 64 65 63 6c 74 6e 5f | | extrn|_decltn_|
|00005ba0| 6c 73 74 0d 20 20 20 3b | 0d 0d 65 78 74 72 6e 5f |lst. ;|..extrn_|
|00005bb0| 64 65 63 6c 74 6e 5f 6c | 73 74 0d 20 20 20 3a 20 |decltn_l|st. : |
|00005bc0| 65 78 74 65 72 6e 61 6c | 5f 64 63 6c 74 69 6f 6e |external|_dcltion|
|00005bd0| 0d 20 20 20 7c 20 65 78 | 74 72 6e 5f 64 65 63 6c |. | ex|trn_decl|
|00005be0| 74 6e 5f 6c 73 74 20 65 | 78 74 65 72 6e 61 6c 5f |tn_lst e|xternal_|
|00005bf0| 64 63 6c 74 69 6f 6e 0d | 20 20 20 3b 0d 0d 65 78 |dcltion.| ;..ex|
|00005c00| 74 65 72 6e 61 6c 5f 64 | 63 6c 74 69 6f 6e 0d 20 |ternal_d|cltion. |
|00005c10| 20 20 3a 20 66 75 6e 63 | 74 69 6f 6e 5f 64 65 66 | : func|tion_def|
|00005c20| 69 6e 69 74 69 6f 6e 0d | 20 20 20 7c 20 64 63 6c |inition.| | dcl|
|00005c30| 74 69 6f 6e 20 20 20 20 | 20 20 20 20 20 20 20 20 |tion | |
|00005c40| 20 20 20 20 7b 64 63 6c | 6f 75 74 28 24 31 29 3b | {dcl|out($1);|
|00005c50| 7d 0d 20 20 20 7c 20 64 | 65 66 69 6e 69 74 69 6f |}. | d|efinitio|
|00005c60| 6e 20 0d 20 20 20 3b 0d | 0d 66 75 6e 63 74 69 6f |n . ;.|.functio|
|00005c70| 6e 5f 64 65 66 69 6e 69 | 74 69 6f 6e 0d 20 20 20 |n_defini|tion. |
|00005c80| 3a 20 66 75 6e 63 5f 68 | 65 61 64 20 7b 66 75 6e |: func_h|ead {fun|
|00005c90| 63 5f 64 65 66 28 24 31 | 29 3b 7d 20 6f 70 74 5f |c_def($1|);} opt_|
|00005ca0| 64 63 6c 74 69 6f 6e 5f | 6c 73 74 20 63 6f 6d 70 |dcltion_|lst comp|
|00005cb0| 6f 75 6e 64 5f 73 74 6d | 74 0d 20 20 20 20 20 20 |ound_stm|t. |
|00005cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005cf0| 20 20 20 20 7b 66 6e 63 | 6f 75 74 28 24 31 2c 20 | {fnc|out($1, |
|00005d00| 24 33 2c 20 24 34 29 3b | 7d 0d 20 20 20 3b 0d 0d |$3, $4);|}. ;..|
|00005d10| 66 75 6e 63 5f 68 65 61 | 64 0d 20 20 20 3a 20 20 |func_hea|d. : |
|00005d20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005d30| 20 6e 6f 5f 74 64 6e 5f | 64 63 6c 74 6f 72 20 7b | no_tdn_|dcltor {|
|00005d40| 24 24 20 3d 20 6e 6f 64 | 65 32 28 4c 73 74 4e 64 |$$ = nod|e2(LstNd|
|00005d50| 2c 20 4e 55 4c 4c 2c 20 | 4e 55 4c 4c 2c 20 24 31 |, NULL, |NULL, $1|
|00005d60| 29 3b 7d 0d 20 20 20 7c | 20 73 74 6f 72 63 6c 5f |);}. || storcl_|
|00005d70| 74 71 75 61 6c 5f 6c 73 | 74 20 20 6e 6f 5f 74 64 |tqual_ls|t no_td|
|00005d80| 6e 5f 64 63 6c 74 6f 72 | 20 7b 24 24 20 3d 20 6e |n_dcltor| {$$ = n|
|00005d90| 6f 64 65 32 28 4c 73 74 | 4e 64 2c 20 4e 55 4c 4c |ode2(Lst|Nd, NULL|
|00005da0| 2c 20 24 31 2c 20 24 32 | 29 3b 7d 0d 20 20 20 7c |, $1, $2|);}. ||
|00005db0| 20 74 79 70 5f 64 63 6c | 74 69 6f 6e 5f 73 70 65 | typ_dcl|tion_spe|
|00005dc0| 63 73 20 64 63 6c 74 6f | 72 20 20 20 20 20 20 20 |cs dclto|r |
|00005dd0| 20 7b 24 24 20 3d 20 6e | 6f 64 65 32 28 4c 73 74 | {$$ = n|ode2(Lst|
|00005de0| 4e 64 2c 20 4e 55 4c 4c | 2c 20 24 31 2c 20 24 32 |Nd, NULL|, $1, $2|
|00005df0| 29 3b 7d 0d 20 20 20 3b | 0d 0d 61 6e 79 5f 69 64 |);}. ;|..any_id|
|00005e00| 65 6e 74 0d 20 20 20 3a | 20 69 64 65 6e 74 69 66 |ent. :| identif|
|00005e10| 69 65 72 20 20 7b 24 24 | 20 3d 20 6e 6f 64 65 30 |ier {$$| = node0|
|00005e20| 28 50 72 69 6d 72 79 4e | 64 2c 20 24 31 29 3b 7d |(PrimryN|d, $1);}|
|00005e30| 0d 20 20 20 7c 20 74 79 | 70 65 64 65 66 6e 61 6d |. | ty|pedefnam|
|00005e40| 65 20 7b 24 24 20 3d 20 | 6e 6f 64 65 30 28 50 72 |e {$$ = |node0(Pr|
|00005e50| 69 6d 72 79 4e 64 2c 20 | 24 31 29 3b 7d 0d 20 20 |imryNd, |$1);}. |
|00005e60| 20 3b 0d 0d 6c 61 62 65 | 6c 0d 20 20 20 3a 20 69 | ;..labe|l. : i|
|00005e70| 64 65 6e 74 69 66 69 65 | 72 20 20 7b 24 24 20 3d |dentifie|r {$$ =|
|00005e80| 20 6c 62 6c 28 24 31 29 | 3b 7d 0d 20 20 20 7c 20 | lbl($1)|;}. | |
|00005e90| 74 79 70 65 64 65 66 6e | 61 6d 65 20 7b 24 24 20 |typedefn|ame {$$ |
|00005ea0| 3d 20 6c 62 6c 28 24 31 | 29 3b 7d 0d 20 20 20 3b |= lbl($1|);}. ;|
|00005eb0| 0d 0d 74 79 70 65 64 65 | 66 6e 61 6d 65 0d 20 20 |..typede|fname. |
|00005ec0| 20 3a 20 54 79 70 65 44 | 65 66 4e 61 6d 65 20 0d | : TypeD|efName .|
|00005ed0| 20 20 20 7c 20 43 5f 49 | 6e 74 65 67 65 72 20 2f | | C_I|nteger /|
|00005ee0| 2a 20 68 61 63 6b 20 74 | 6f 20 61 6c 6c 6f 77 20 |* hack t|o allow |
|00005ef0| 43 5f 69 6e 74 65 67 65 | 72 20 74 6f 20 62 65 20 |C_intege|r to be |
|00005f00| 64 65 66 69 6e 65 64 20 | 77 69 74 68 20 74 79 70 |defined |with typ|
|00005f10| 65 64 65 66 20 2a 2f 0d | 20 20 20 7c 20 43 5f 44 |edef */.| | C_D|
|00005f20| 6f 75 62 6c 65 20 20 2f | 2a 20 66 6f 72 20 63 6f |ouble /|* for co|
|00005f30| 6e 73 69 73 74 65 6e 63 | 79 20 77 69 74 68 20 43 |nsistenc|y with C|
|00005f40| 5f 69 6e 74 65 67 65 72 | 20 2a 2f 0d 20 20 20 7c |_integer| */. ||
|00005f50| 20 43 5f 53 74 72 69 6e | 67 20 20 2f 2a 20 66 6f | C_Strin|g /* fo|
|00005f60| 72 20 63 6f 6e 73 69 73 | 74 65 6e 63 79 20 77 69 |r consis|tency wi|
|00005f70| 74 68 20 43 5f 69 6e 74 | 65 67 65 72 20 2a 2f 0d |th C_int|eger */.|
|00005f80| 20 20 20 3b 0d 0d 2f 2a | 0d 20 2a 20 54 68 65 20 | ;../*|. * The |
|00005f90| 72 65 73 74 20 6f 66 20 | 74 68 65 20 67 72 61 6d |rest of |the gram|
|00005fa0| 6d 61 72 20 69 6d 70 6c | 65 6d 65 6e 74 73 20 74 |mar impl|ements t|
|00005fb0| 68 65 20 69 6e 74 65 72 | 66 61 63 65 20 70 6f 72 |he inter|face por|
|00005fc0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 6c 61 6e 67 |tion of |the lang|
|00005fd0| 75 61 67 65 2e 0d 20 2a | 2f 0d 0d 64 65 66 69 6e |uage.. *|/..defin|
|00005fe0| 69 74 69 6f 6e 0d 20 20 | 20 3a 20 7b 73 74 72 74 |ition. | : {strt|
|00005ff0| 5f 64 65 66 28 29 3b 7d | 20 64 65 73 63 72 69 70 |_def();}| descrip|
|00006000| 74 69 6f 6e 20 6f 70 65 | 72 61 74 69 6f 6e 0d 20 |tion ope|ration. |
|00006010| 20 20 3b 0d 0d 6f 70 65 | 72 61 74 69 6f 6e 0d 20 | ;..ope|ration. |
|00006020| 20 20 3a 20 66 6e 63 5f | 6f 70 65 72 20 6f 70 5f | : fnc_|oper op_|
|00006030| 64 65 63 6c 61 72 65 20 | 61 63 74 69 6f 6e 73 20 |declare |actions |
|00006040| 45 6e 64 20 7b 64 65 66 | 6f 75 74 28 24 33 29 3b |End {def|out($3);|
|00006050| 20 66 72 65 65 5f 74 28 | 24 34 29 3b 7d 0d 20 20 | free_t(|$4);}. |
|00006060| 20 7c 20 6b 65 79 77 6f | 72 64 20 20 20 20 20 20 | | keywo|rd |
|00006070| 20 20 20 20 20 20 20 61 | 63 74 69 6f 6e 73 20 45 | a|ctions E|
|00006080| 6e 64 20 7b 64 65 66 6f | 75 74 28 24 32 29 3b 20 |nd {defo|ut($2); |
|00006090| 66 72 65 65 5f 74 28 24 | 33 29 3b 7d 0d 20 20 20 |free_t($|3);}. |
|000060a0| 7c 20 6b 65 79 77 6f 72 | 64 20 43 6f 6e 73 74 61 || keywor|d Consta|
|000060b0| 6e 74 20 6b 65 79 5f 63 | 6f 6e 73 74 20 20 45 6e |nt key_c|onst En|
|000060c0| 64 20 7b 6b 65 79 63 6f | 6e 73 74 28 24 33 29 3b |d {keyco|nst($3);|
|000060d0| 20 66 72 65 65 5f 74 28 | 24 32 29 3b 20 66 72 65 | free_t(|$2); fre|
|000060e0| 65 5f 74 28 24 34 29 3b | 7d 0d 20 20 20 3b 0d 0d |e_t($4);|}. ;..|
|000060f0| 64 65 73 63 72 69 70 74 | 69 6f 6e 0d 20 20 20 3a |descript|ion. :|
|00006100| 20 20 20 20 20 20 20 20 | 20 7b 63 6f 6d 6d 65 6e | | {commen|
|00006110| 74 20 3d 20 4e 55 4c 4c | 3b 7d 0d 20 20 20 7c 20 |t = NULL|;}. | |
|00006120| 53 74 72 4c 69 74 20 20 | 7b 63 6f 6d 6d 65 6e 74 |StrLit |{comment|
|00006130| 20 3d 20 24 31 3b 7d 0d | 20 20 20 3b 0d 0d 66 6e | = $1;}.| ;..fn|
|00006140| 63 5f 6f 70 65 72 0d 20 | 20 20 3a 20 46 75 6e 63 |c_oper. | : Func|
|00006150| 74 69 6f 6e 20 27 7b 27 | 20 72 65 73 75 6c 74 5f |tion '{'| result_|
|00006160| 73 65 71 20 27 7d 27 20 | 6f 70 5f 6e 61 6d 65 20 |seq '}' |op_name |
|00006170| 27 28 27 20 6f 70 74 5f | 73 5f 70 61 72 6d 5f 6c |'(' opt_|s_parm_l|
|00006180| 73 74 20 27 29 27 0d 20 | 20 20 20 20 20 7b 69 6d |st ')'. | {im|
|00006190| 70 6c 5f 66 6e 63 28 24 | 35 29 3b 20 66 72 65 65 |pl_fnc($|5); free|
|000061a0| 5f 74 28 24 31 29 3b 20 | 66 72 65 65 5f 74 28 24 |_t($1); |free_t($|
|000061b0| 32 29 3b 20 66 72 65 65 | 5f 74 28 24 34 29 3b 20 |2); free|_t($4); |
|000061c0| 66 72 65 65 5f 74 28 24 | 36 29 3b 0d 20 20 20 20 |free_t($|6);. |
|000061d0| 20 20 20 66 72 65 65 5f | 74 28 24 38 29 3b 7d 0d | free_|t($8);}.|
|000061e0| 20 20 20 7c 20 4f 70 65 | 72 61 74 6f 72 20 27 7b | | Ope|rator '{|
|000061f0| 27 20 72 65 73 75 6c 74 | 5f 73 65 71 20 7b 6c 65 |' result|_seq {le|
|00006200| 78 5f 73 74 61 74 65 20 | 3d 20 4f 70 48 65 61 64 |x_state |= OpHead|
|00006210| 3b 7d 20 27 7d 27 20 4f | 70 53 79 6d 0d 20 20 20 |;} '}' O|pSym. |
|00006220| 20 20 20 7b 6c 65 78 5f | 73 74 61 74 65 20 3d 20 | {lex_|state = |
|00006230| 44 66 6c 74 4c 65 78 3b | 7d 20 6f 70 5f 6e 61 6d |DfltLex;|} op_nam|
|00006240| 65 20 27 28 27 20 6f 70 | 74 5f 73 5f 70 61 72 6d |e '(' op|t_s_parm|
|00006250| 5f 6c 73 74 20 27 29 27 | 0d 20 20 20 20 20 20 7b |_lst ')'|. {|
|00006260| 69 6d 70 6c 5f 6f 70 28 | 24 36 2c 20 24 38 29 3b |impl_op(|$6, $8);|
|00006270| 20 66 72 65 65 5f 74 28 | 24 31 29 3b 20 66 72 65 | free_t(|$1); fre|
|00006280| 65 5f 74 28 24 32 29 3b | 20 66 72 65 65 5f 74 28 |e_t($2);| free_t(|
|00006290| 24 35 29 3b 20 66 72 65 | 65 5f 74 28 24 39 29 3b |$5); fre|e_t($9);|
|000062a0| 0d 20 20 20 20 20 20 20 | 66 72 65 65 5f 74 28 24 |. |free_t($|
|000062b0| 31 31 29 3b 7d 0d 0d 6b | 65 79 77 6f 72 64 0d 20 |11);}..k|eyword. |
|000062c0| 20 20 3a 20 4b 65 79 77 | 6f 72 64 20 20 27 7b 27 | : Keyw|ord '{'|
|000062d0| 20 72 65 73 75 6c 74 5f | 73 65 71 20 27 7d 27 20 | result_|seq '}' |
|000062e0| 6f 70 5f 6e 61 6d 65 0d | 20 20 20 20 20 20 20 7b |op_name.| {|
|000062f0| 69 6d 70 6c 5f 6b 65 79 | 28 24 35 29 3b 20 66 72 |impl_key|($5); fr|
|00006300| 65 65 5f 74 28 24 31 29 | 3b 20 66 72 65 65 5f 74 |ee_t($1)|; free_t|
|00006310| 28 24 32 29 3b 20 66 72 | 65 65 5f 74 28 24 34 29 |($2); fr|ee_t($4)|
|00006320| 3b 7d 0d 20 20 20 3b 0d | 0d 6b 65 79 5f 63 6f 6e |;}. ;.|.key_con|
|00006330| 73 74 0d 20 20 20 3a 20 | 53 74 72 4c 69 74 0d 20 |st. : |StrLit. |
|00006340| 20 20 7c 20 43 68 61 72 | 43 6f 6e 73 74 0d 20 20 | | Char|Const. |
|00006350| 20 7c 20 44 62 6c 43 6f | 6e 73 74 0d 20 20 20 7c | | DblCo|nst. ||
|00006360| 20 49 6e 74 43 6f 6e 73 | 74 0d 20 20 20 3b 0d 0d | IntCons|t. ;..|
|00006370| 2f 2a 0d 20 2a 20 41 6c | 6c 6f 77 20 61 73 20 6d |/*. * Al|low as m|
|00006380| 61 6e 79 20 73 70 65 63 | 69 61 6c 20 6e 61 6d 65 |any spec|ial name|
|00006390| 73 20 74 6f 20 62 65 20 | 69 64 65 6e 74 69 66 69 |s to be |identifi|
|000063a0| 65 72 73 20 61 73 20 70 | 6f 73 73 69 62 6c 65 0d |ers as p|ossible.|
|000063b0| 20 2a 2f 0d 69 64 65 6e | 74 69 66 69 65 72 0d 20 | */.iden|tifier. |
|000063c0| 20 20 3a 20 41 62 73 74 | 72 61 63 74 0d 20 20 20 | : Abst|ract. |
|000063d0| 7c 20 41 6c 6c 5f 66 69 | 65 6c 64 73 0d 20 20 20 || All_fi|elds. |
|000063e0| 7c 20 41 6e 79 5f 76 61 | 6c 75 65 0d 20 20 20 7c || Any_va|lue. ||
|000063f0| 20 42 6f 64 79 0d 20 20 | 20 7c 20 43 6f 6d 70 6f | Body. | | Compo|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.